Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.72ms] Passed 4 tests
An overview of server-side resources used by Redirector
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.05 ▼7.30 |
Dashboard /wp-admin | 3.39 ▲0.04 | 48.56 ▼22.03 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.36 ▼6.25 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 93.99 ▼7.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 37.94 ▲5.93 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Redirector
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.34 ▼0.02 | 1.64 ▼0.42 | 37.29 ▼6.93 |
Dashboard /wp-admin | 2,212 ▲38 | 5.64 ▲0.03 | 89.96 ▼11.54 | 42.81 ▼3.80 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.98 ▲0.02 | 37.95 ▼2.20 | 41.59 ▲6.67 |
Add New Post /wp-admin/post-new.php | 1,390 ▼138 | 20.58 ▼2.48 | 541.33 ▼101.02 | 34.53 ▼23.73 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.14 ▼0.04 | 99.36 ▼1.85 | 46.25 ▲2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
- Screenshots: Add images for these screenshots: #1 (Meta box - No redirection), #8 (Meta box - SSL)
post-url-redirect/redirector.php 92% from 13 tests
This is the main PHP file of "Redirector" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-url-redirect.php" instead of "redirector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected650 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 245 | 183 | 366 |
PO File | 3 | 46 | 92 | 149 |
JavaScript | 1 | 57 | 12 | 111 |
CSS | 1 | 6 | 7 | 24 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 81.25% |
▷ Protected methods | 3 | 18.75% |
▷ 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected