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
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.21ms] Passed 4 tests
This is a short check of server-side resources used by Redirection Reporting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 37.03 ▼6.45 |
Dashboard /wp-admin | 3.49 ▲0.19 | 44.10 ▼5.39 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.22 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 85.25 ▼3.84 |
Media Library /wp-admin/upload.php | 3.42 ▲0.18 | 36.72 ▲3.58 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_redirection_logs_archive |
New WordPress options |
---|
widget_recent-posts |
redirection_reporting |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Redirection Reporting: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.53 ▼0.84 | 1.89 ▼0.15 | 41.64 ▼9.15 |
Dashboard /wp-admin | 2,214 ▲25 | 5.79 ▲0.81 | 97.11 ▼27.56 | 37.60 ▼9.07 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▼0.00 | 37.16 ▲1.66 | 36.50 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,591 ▲57 | 21.62 ▼1.61 | 664.71 ▼32.62 | 37.86 ▼20.55 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.29 ▲0.07 | 94.92 ▼18.67 | 41.81 ▼4.99 |
Redirection Reporting /wp-admin/redirection.php.reporting.settings | 26 | 0.44 | 0.09 | 12.45 |
Redirection Reporting /wp-admin/redirection.php.reporting | 26 | 0.44 | 0.09 | 6.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_redirection_logs_archive
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/redirection-reporting/redirection-reporting.php:97
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/redirection.php.reporting.settings
- > Network (severe)
wp-admin/redirection.php.reporting.settings - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/redirection.php.reporting
- > Network (severe)
wp-admin/redirection.php.reporting - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: redirection, reporting
redirection-reporting/redirection-reporting.php 92% from 13 tests
The main PHP script in "Redirection Reporting" version 3.0.6 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected902 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 240 | 27 | 902 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 30.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 48 | 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 | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
info.png | 2.86KB | 2.14KB | ▼ 24.92% |