Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.85ms] Passed 4 tests
This is a short check of server-side resources used by Postcode Redirect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.63 ▲7.59 |
Dashboard /wp-admin | 3.35 ▲0.04 | 41.50 ▼4.77 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.99 ▼8.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.17 ▼7.63 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 31.87 ▼2.27 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 13 new options
New WordPress options |
---|
theysaidso_admin_options |
pr_use |
pr_wait |
pr_ask |
widget_recent-posts |
pr_wrong |
widget_recent-comments |
pr_postcodes1 |
pr_postcodes2 |
pr_neg |
... |
Browser metrics Passed 4 tests
Postcode Redirect: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲125 | 13.46 ▼0.89 | 7.67 ▲6.07 | 37.19 ▼4.65 |
Dashboard /wp-admin | 2,206 ▲26 | 5.64 ▼0.00 | 82.77 ▼9.74 | 70.75 ▲29.58 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.98 ▼0.05 | 38.31 ▲1.65 | 35.79 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 18.08 ▼5.35 | 642.96 ▼35.48 | 112.76 ▲51.64 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.18 ▼0.01 | 95.03 ▼3.59 | 80.11 ▲35.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- pr_postcodes1
- pr_wrong
- pr_wait
- pr_postcodes2
- pr_ask
- widget_recent-posts
- db_upgraded
- pr_use
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
7 plugin tags: local, website, url, redirect, tradesmen...
postcode-redirect/postcoderedirect.php 92% from 13 tests
The main PHP script in "Postcode Redirect" version 5.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("postcode-redirect.php" instead of "postcoderedirect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin316 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 36 | 271 |
JavaScript | 1 | 0 | 0 | 41 |
CSS | 1 | 6 | 2 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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