Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼142.40ms] Passed 4 tests
An overview of server-side resources used by Zone Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.26 | 31.51 ▲7.44 |
Dashboard /wp-admin | 3.27 ▲0.21 | 44.91 ▼1.02 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 40.94 ▼2.72 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 81.65 ▼570.47 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 35.85 ▲4.62 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 41 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_zn_redirect_visits |
wp_zn_redirect_links |
New WordPress options |
---|
zone_redirect_version |
Browser metrics Passed 4 tests
A check of browser resources used by Zone Redirect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲126 | 16.02 ▲0.41 | 9.27 ▼2.38 | 48.08 ▲0.99 |
Dashboard /wp-admin | 3,012 ▲81 | 6.19 ▲0.27 | 139.05 ▼6.55 | 109.67 ▼8.01 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▼0.01 | 61.15 ▼7.19 | 102.20 ▲9.62 |
Add New Post /wp-admin/post-new.php | 1,685 ▲187 | 18.84 ▲0.01 | 366.34 ▲1.75 | 113.63 ▲6.09 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.05 ▲0.03 | 152.41 ▲5.10 | 122.01 ▲1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_zn_redirect_links
- This plugin did not uninstall successfully, leaving 1 option in the database
- zone_redirect_version
Smoke tests 50% 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 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/zone-redirect/admin/view/tabs/tab-history.php
- > /wp-content/plugins/zone-redirect/admin/view/tabs/tab-home.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zone-redirect/admin/view/tabs/tab-redirect.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/zone-redirect/admin/view/tabs/tab-setup.php:31
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/zone-redirect/admin/view/zone-redirect-main-display.php:19
- > PHP Notice
Undefined variable: tbl_visits in wp-content/plugins/zone-redirect/admin/view/tabs/tab-history.php on line 29
- > PHP Notice
Undefined variable: tbl_visits in wp-content/plugins/zone-redirect/admin/view/tabs/tab-history.php on line 29
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: Version format is invalid
- Requires php: Version format is invalid
zone-redirect/zone-redirect.php 92% from 13 tests
The main PHP script in "Zone Redirect" version 1.0.10 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
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
Good job! No executable or dangerous file extensions detected23,893 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,558 | 54 | 12,588 |
JavaScript | 7 | 2,403 | 7,086 | 10,229 |
PHP | 20 | 176 | 606 | 1,057 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 52 | 91.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.77% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin