90% jvh-woody-snippets-helper

Code Review | JVH Woody Snippets helper

WordPress plugin JVH Woody Snippets helper scored90%from 54 tests.

About plugin

  • Plugin page: jvh-woody-snippet...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Mar 23, 2021
  • Latest release: Aug 4, 2021
  • Number of updates: 11
  • Update frequency: every 60.6 days
  • Top authors: jaapjvh (63.64%)Lars- (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.47ms] Passed 4 tests

Analyzing server-side resources used by JVH Woody Snippets helper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.40 ▼7.96
Dashboard /wp-admin3.31 ▲0.0147.95 ▼9.03
Posts /wp-admin/edit.php3.36 ▲0.0052.59 ▲4.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.68 ▼14.62
Media Library /wp-admin/upload.php3.23 ▲0.0038.75 ▲1.75

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for JVH Woody Snippets helper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.71 ▲0.571.83 ▼0.1940.16 ▼7.38
Dashboard /wp-admin2,195 ▲185.49 ▼0.0987.53 ▼14.1438.17 ▼5.81
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0340.43 ▼0.5736.12 ▼0.11
Add New Post /wp-admin/post-new.php1,526 ▼1023.31 ▲0.18670.34 ▼5.4247.76 ▲0.36
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0699.50 ▲2.0245.79 ▲1.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: jvh

jvh-woody-snippets-helper/jvh-woody-helper.php 92% from 13 tests

The entry point to "JVH Woody Snippets helper" version 1.2.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jvh-woody-snippets-helper.php" instead of "jvh-woody-helper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin119 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53311119

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.64
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin