10% jvh-css-classes

Code Review | JVH CSS Classes

WordPress plugin JVH CSS Classes scored10%from 54 tests.

About plugin

  • Plugin page: jvh-css-classes
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Apr 6, 2023
  • Number of updates: 30
  • Update frequency: every 6.8 days
  • Top authors: jaapjvh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /487 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/jvh-css-classes/inc/class-missing-class-fixer.php+34
    file_get_contents(wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php): failed to open stream: No such file or directory

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

Analyzing server-side resources used by JVH CSS Classes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.41 ▼1.50
Dashboard /wp-admin3.31 ▼0.0449.09 ▼19.65
Posts /wp-admin/edit.php3.36 ▲0.0046.41 ▼2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.76 ▼21.15
Media Library /wp-admin/upload.php3.23 ▲0.0035.17 ▼3.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by JVH CSS Classes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.11 ▼0.241.89 ▼0.2146.04 ▲2.00
Dashboard /wp-admin2,192 ▲185.54 ▼0.12101.21 ▲1.4041.91 ▼1.72
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0137.29 ▼3.3237.93 ▼4.93
Add New Post /wp-admin/post-new.php1,526 ▼223.08 ▼0.18658.39 ▼28.2955.51 ▼12.25
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.1195.68 ▼11.9145.54 ▼1.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function JVH\\CSS\\plugin_dir_path() in wp-content/plugins/jvh-css-classes/jvh-css-classes.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: jvh

jvh-css-classes/jvh-css-classes.php Passed 13 tests

"JVH CSS Classes" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
CSS classes CPT for VC elements

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,297 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP515517665
JavaScript510767506
CSS314074
SVG10052

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods45
▷ Static methods12.22%
▷ Public methods1124.44%
▷ Protected methods00.00%
▷ Private methods3475.56%
Functions16
▷ Named functions00.00%
▷ Anonymous functions16100.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin