10% 404-silent-salesman

Code Review | 404 Silent Salesman

WordPress plugin 404 Silent Salesman scored10%from 54 tests.

About plugin

  • Plugin page: 404-silent-salesman
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 22, 2013
  • Latest release: Dec 28, 2013
  • Number of updates: 20
  • Update frequency: every 17.0 days
  • Top authors: jprummer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /7,685 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/404-silent-salesman/silent-salesman.php+36
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.83MB] [CPU: ▼50.59ms] Passed 4 tests

An overview of server-side resources used by 404 Silent Salesman
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.314.43 ▼34.14
Dashboard /wp-admin2.18 ▼1.136.79 ▼40.98
Posts /wp-admin/edit.php2.18 ▼1.185.72 ▼44.18
Add New Post /wp-admin/post-new.php2.18 ▼3.718.65 ▼83.04
Media Library /wp-admin/upload.php2.18 ▼1.056.66 ▼27.94
Silent Salesman /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page2.186.89

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
silentsalesman
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for 404 Silent Salesman
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.72 ▲0.121.67 ▼0.0736.66 ▼1.32
Dashboard /wp-admin2,199 ▲255.51 ▼0.1781.79 ▼3.3240.09 ▼3.32
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0233.28 ▼1.3534.72 ▼2.71
Add New Post /wp-admin/post-new.php1,529 ▲323.62 ▲0.42686.47 ▼6.8454.97 ▲0.95
Media Library /wp-admin/upload.php1,407 ▲74.15 ▼0.0196.70 ▼2.3240.45 ▼4.62
Silent Salesman /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page1,0272.0024.5538.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/404-silent-salesman/silent-salesman.php+36
    A non well formed numeric value encountered
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • silentsalesman
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page
    • > Notice in wp-content/plugins/404-silent-salesman/silent-salesman.php+36
    A non well formed numeric value encountered
    • > GET request to /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page
    • > Notice in wp-content/plugins/404-silent-salesman/silent-salesman.php+36
    Uninitialized string offset: 404

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
Almost there! Just fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/404-silent-salesman/silent-salesman.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'SilentSalesmanPro_Settings' not found in wp-content/plugins/404-silent-salesman/includes/plugins/ss_woocommerce.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SilentSalesmanPro_Settings' not found in wp-content/plugins/404-silent-salesman/includes/plugins/ss_404.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: 404 redirect, sales, woocommerce, 404, products

404-silent-salesman/silent-salesman.php 85% from 13 tests

"404 Silent Salesman" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("404-silent-salesman.php" instead of "silent-salesman.php")

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
Everything looks great! No dangerous files found in this plugin511 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4128154511

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.50
▷ Minimum class complexity7.00
▷ Maximum class complexity44.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 images were found in this plugin