Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼140.45ms] Passed 4 tests
Analyzing server-side resources used by Nomore404 404 Redirection and Firewall
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 36.68 ▲15.49 |
Dashboard /wp-admin | 3.10 ▲0.04 | 44.70 ▲3.27 |
Posts /wp-admin/edit.php | 3.21 ▲0.10 | 44.80 ▼0.73 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 79.17 ▼567.67 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.14 ▲3.32 |
NoMore404 /wp-admin/options-general.php?page=nomore404 | 3.02 | 31.87 |
Server storage [IO: ▲18.29MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 1,444 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_nomore404_caller |
wp_nomore404_uri |
wp_nomore404_uri_caller |
New WordPress options |
---|
nomore404_options |
nomore404_countURIredirected |
nomore404_countCallersBlocked |
nomore404_countCallersMarkedMalicious |
nomore404_dateCountStarted |
nomore404_countURIredirected2Custom |
nomore404_countURIblocked |
Browser metrics Passed 4 tests
A check of browser resources used by Nomore404 404 Redirection and Firewall
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,114 ▲518 | 15.96 ▲0.33 | 11.10 ▲0.46 | 46.90 ▼7.80 |
Dashboard /wp-admin | 3,390 ▲459 | 5.99 ▼0.05 | 145.38 ▼6.38 | 111.57 ▼4.89 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.00 | 70.34 ▲6.16 | 91.72 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,673 ▼10 | 19.12 ▲0.42 | 358.37 ▼10.65 | 107.05 ▼5.63 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.00 | 148.08 ▼11.19 | 119.47 ▲2.52 |
NoMore404 /wp-admin/options-general.php?page=nomore404 | 1,405 | 2.09 | 61.18 | 73.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 3 tables in the database
- wp_nomore404_uri_caller
- wp_nomore404_caller
- wp_nomore404_uri
- This plugin did not uninstall successfully, leaving 7 options in the database
- nomore404_dateCountStarted
- nomore404_countCallersBlocked
- nomore404_countURIblocked
- nomore404_options
- nomore404_countURIredirected
- nomore404_countURIredirected2Custom
- nomore404_countCallersMarkedMalicious
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 603× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/ServiceDiscovery/Exception/ServiceDiscoveryException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/AutoScaling/Exception/AutoScalingException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/DataSync/DataSyncClient.php:67
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/Detective/Exception/DetectiveException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/PI/PIClient.php:13
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/AlexaForBusiness/Exception/AlexaForBusinessException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\DynamoDb\\SessionConnectionInterface' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/DynamoDb/StandardSessionConnection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/EKS/Exception/EKSException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/signer/Exception/signerException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/nomore404-404-redirection-and-firewall/includes/aws/Aws/S3/ObjectCopier.php:16
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: block, host, redirection, url, firewall...
nomore404-404-redirection-and-firewall/nomore404.php 69% from 13 tests
Analyzing the main PHP file in "Nomore404 404 Redirection and Firewall" version 2.1
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nomore404-404-redirection-and-firewall.php" instead of "nomore404.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Description: The description should be shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin43,011 lines of code in 1,435 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,431 | 6,937 | 32,814 | 37,690 |
Markdown | 4 | 2,062 | 0 | 5,321 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 487 | |
Interfaces | 39 | |
Traits | 19 | |
Classes | 722 | |
▷ Abstract classes | 11 | 1.52% |
▷ Concrete classes | 711 | 98.48% |
▷ Final classes | 14 | 1.97% |
Methods | 2,398 | |
▷ Static methods | 368 | 15.35% |
▷ Public methods | 1,672 | 69.72% |
▷ Protected methods | 137 | 5.71% |
▷ Private methods | 589 | 24.56% |
Functions | 448 | |
▷ Named functions | 101 | 22.54% |
▷ Anonymous functions | 347 | 77.46% |
Constants | 248 | |
▷ Global constants | 38 | 15.32% |
▷ Class constants | 210 | 84.68% |
▷ Public constants | 210 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.80MB with 0.46MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-722x250.png | 172.49KB | 68.39KB | ▼ 60.35% |
assets/icon-128x128.png | 24.72KB | 10.97KB | ▼ 55.61% |
assets/banner-1544x500.png | 547.61KB | 257.46KB | ▼ 52.98% |
assets/icon-256x256.png | 79.04KB | 33.66KB | ▼ 57.42% |