90% jvm-details-summary

Code Review | JVM Details & Summary

WordPress plugin JVM Details & Summary scored90%from 54 tests.

About plugin

  • Plugin page: jvm-details-summary
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 6
  • Update frequency: every 167.8 days
  • Top authors: jorisvanmontfort (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.71ms] Passed 4 tests

An overview of server-side resources used by JVM Details & Summary
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0144.48 ▲1.88
Dashboard /wp-admin3.32 ▲0.0151.25 ▼0.16
Posts /wp-admin/edit.php3.37 ▲0.0147.11 ▼7.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.56 ▼25.08
Media Library /wp-admin/upload.php3.24 ▲0.0135.27 ▲4.20

Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for JVM Details & Summary
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.111.97 ▲0.3142.92 ▲1.37
Dashboard /wp-admin2,195 ▲185.59 ▲0.0890.45 ▼7.9840.08 ▼2.40
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0236.07 ▼2.5133.99 ▼6.47
Add New Post /wp-admin/post-new.php6,197 ▲4,65526.15 ▲2.90911.34 ▲256.7571.97 ▲22.91
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.0195.50 ▼7.8742.64 ▼5.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: editor, details, block, gutenberg, collapsible...

jvm-details-summary/jvm-details-summary.php Passed 13 tests

The main PHP script in "JVM Details & Summary" version 1.0.1 is automatically included on every request by WordPress
84 characters long description:
Create collapsible content in the WordPress editor with a details and summary block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,450 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON3007,325
JavaScript395755
PHP296039
Sass32024
CSS1267

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected