84% yahman-add-ons

Code Review | YAHMAN Add-ons

WordPress plugin YAHMAN Add-ons scored84%from 54 tests.

About plugin

  • Plugin page: yahman-add-ons
  • Plugin version: 0.9.28
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.4
  • WordPress version: 6.3.1
  • First release: Dec 8, 2018
  • Latest release: Nov 2, 2023
  • Number of updates: 245
  • Update frequency: every 7.3 days
  • Top authors: back2nature (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /83,165 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.99ms] Passed 4 tests

Analyzing server-side resources used by YAHMAN Add-ons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1739.63 ▼3.55
Dashboard /wp-admin3.41 ▲0.1048.19 ▼1.84
Posts /wp-admin/edit.php3.52 ▲0.1651.06 ▲3.77
Add New Post /wp-admin/post-new.php5.99 ▲0.1097.05 ▲1.01
Media Library /wp-admin/upload.php3.33 ▲0.1033.30 ▲0.42
YAHMAN Add-ons /wp-admin/options-general.php?page=yahman-add-ons3.8746.42

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 806 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
yahman_addons_version
theysaidso_admin_options
yahman_addons
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by YAHMAN Add-ons
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.27 ▼0.081.76 ▲0.0937.48 ▼10.35
Dashboard /wp-admin2,202 ▲225.64 ▼0.0188.64 ▼9.7038.86 ▼9.03
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.1739.98 ▲3.6234.95 ▲0.87
Add New Post /wp-admin/post-new.php1,542 ▲718.32 ▲0.04639.94 ▼24.0465.79 ▼15.13
Media Library /wp-admin/upload.php1,401 ▼24.20 ▼0.11103.72 ▼1.5441.79 ▼1.55
YAHMAN Add-ons /wp-admin/options-general.php?page=yahman-add-ons8,1304.50109.29157.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • yahman_addons
    • widget_recent-comments
    • yahman_addons_version
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-google_ad-inarticle.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-postlist-popular_posts.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-dd-archives.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-profile.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-2lists_2col.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-postlist-update.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-google_ad-infeed.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-carousel_slider.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-dd-categories.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yahman-add-ons/inc/widget/widget-toc.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: twitter timeline, pageviews, table of contents, popular posts

yahman-add-ons/yahman-add-ons.php 92% from 13 tests

The entry point to "YAHMAN Add-ons" version 0.9.28 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin29,421 lines of code in 792 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4131,5442,12713,674
PHP913,86978010,453
CSS2776891,2393,403
PO File19081,6551,323
Markdown2230432
JSON20089
SVG60447

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity18.41
▷ Minimum class complexity6.00
▷ Maximum class complexity48.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods139
▷ Static methods107.19%
▷ Public methods11280.58%
▷ Protected methods85.76%
▷ Private methods1913.67%
Functions133
▷ Named functions12593.98%
▷ Anonymous functions86.02%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/highlight/styles/brown-papersq.png17.77KB9.92KB▼ 44.16%
assets/images/blank.png17.28KB0.09KB▼ 99.46%
assets/images/json_logo.png15.50KB1.43KB▼ 90.74%
assets/images/no_image.png19.80KB11.28KB▼ 43.03%