84% webman-amplifier

Code Review | WebMan Amplifier

WordPress plugin WebMan Amplifier scored84%from 54 tests.

About plugin

  • Plugin page: webman-amplifier
  • Plugin version: 1.5.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2013
  • Latest release: May 25, 2023
  • Number of updates: 160
  • Update frequency: every 21.7 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /105,921 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲1.01MB] [CPU: ▲6.36ms] Passed 4 tests

Server-side resources used by WebMan Amplifier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.47 ▲1.0056.75 ▲14.38
Dashboard /wp-admin4.36 ▲1.0158.89 ▼2.39
Posts /wp-admin/edit.php4.41 ▲1.0554.56 ▲4.14
Add New Post /wp-admin/post-new.php6.91 ▲1.02103.16 ▲9.31
Media Library /wp-admin/upload.php4.22 ▲0.9951.63 ▲17.82
Icon Font /wp-admin/themes.php?page=icon-font5.0952.91

Server storage [IO: ▲2.33MB] [DB: ▲0.05MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 192 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
wmamp-icon-font
wmamp-icons
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WebMan Amplifier
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.17 ▼0.191.74 ▲0.0144.96 ▼0.74
Dashboard /wp-admin2,199 ▲225.50 ▼0.1180.82 ▼5.4236.43 ▼3.19
Posts /wp-admin/edit.php2,106 ▲62.00 ▼0.0032.33 ▼7.8034.06 ▼1.32
Add New Post /wp-admin/post-new.php1,533 ▲723.02 ▼0.57640.54 ▼37.4458.02 ▼0.95
Media Library /wp-admin/upload.php1,404 ▲14.22 ▲0.0496.61 ▼6.4043.65 ▼2.37
Icon Font /wp-admin/themes.php?page=icon-font13,1733.1560.05222.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • wmamp-icon-font
    • wmamp-icons
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 72× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/tabs.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/column.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/content_module.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webman-amplifier/includes/metabox/fields/images.php:138
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/webman-amplifier/templates/content-shortcode-posts-wm_staff.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/pre.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/pricing_table.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/countdown_timer.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/price.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webman-amplifier/includes/shortcodes/renderers/last_update.php:18

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
The official readme.txt is a good inspiration

webman-amplifier/webman-amplifier.php 92% from 13 tests

"WebMan Amplifier" version 1.5.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin26,027 lines of code in 181 files:
LanguageFilesBlank linesComment linesLines of code
PHP1215,1746,73214,181
JSON1004,060
JavaScript191,6805103,327
Markdown450601,576
Sass24423661,135
CSS11273731,062
SVG16740686

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity16.77
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes25.13%
▷ Concrete classes3794.87%
▷ Final classes00.00%
Methods204
▷ Static methods4220.59%
▷ Public methods17585.78%
▷ Protected methods52.45%
▷ Private methods2411.76%
Functions123
▷ Named functions123100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/meta/no-thumb.png0.31KB0.25KB▼ 21.00%
assets/images/meta/no-thumb@2x.png0.51KB0.42KB▼ 18.89%