10% 404-silent-salesman

Code Review | 404 Silent Salesman

WordPress plugin 404 Silent Salesman scored 10% 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: 5.9.2
  • 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

100+ active / 7,382 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > 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: ▼2.41MB] [CPU: ▼342.20ms] Passed 4 tests

Server-side resources used by 404 Silent Salesman
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.96 ▼1.554.67 ▼45.23
Dashboard /wp-admin1.98 ▼1.424.04 ▼29.18
Posts /wp-admin/edit.php1.98 ▼1.665.18 ▼30.50
Add New Post /wp-admin/post-new.php1.98 ▼4.994.46 ▼1,263.87
Media Library /wp-admin/upload.php1.98 ▼1.314.59 ▼19.94
Silent Salesman /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page1.984.50

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
silentsalesman

Browser metrics Passed 4 tests

Checking browser requirements for 404 Silent Salesman
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲5815.81 ▲0.035.90 ▼0.032.83 ▲0.62
Dashboard /wp-admin2,897 ▲436.12 ▼0.04115.85 ▼30.54156.18 ▼18.43
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0163.87 ▼5.52139.30 ▼4.97
Add New Post /wp-admin/post-new.php1,663 ▼4816.99 ▼4.40428.31 ▼25.71158.77 ▲2.14
Media Library /wp-admin/upload.php1,703 ▲25.48 ▼0.05145.95 ▲2.05188.64 ▲3.48
Silent Salesman /wp-admin/edit.php?post_type=page&page=silentsalesman_options_page1,2672.3755.93184.93

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • 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: 1 option
    • silentsalesman

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'SilentSalesmanPro_Settings' not found in wp-content/plugins/404-silent-salesman/includes/plugins/ss_404.php:3
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
5 plugin tags: 404, woocommerce, products, 404 redirect, sales

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

The entry point to "404 Silent Salesman" version 1.0.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: It is recommended to name the main PHP file as the plugin slug ("404-silent-salesman.php" instead of "silent-salesman.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
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

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin