Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.18ms] Passed 4 tests
Analyzing server-side resources used by Advance Canonical URL
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.21 ▲3.83 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.10 ▼3.85 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.17 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 78.57 ▼20.64 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.62 ▲2.09 |
Advance Canonical Settings /wp-admin/options-general.php?page=advance_canonical_settings | 3.25 | 31.79 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Advance Canonical URL
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.19 ▼1.24 | 1.71 ▼0.05 | 45.34 ▲2.27 |
Dashboard /wp-admin | 2,210 ▲22 | 5.03 ▲0.18 | 99.14 ▼13.83 | 40.43 ▼6.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.07 | 40.26 ▼1.19 | 35.62 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,539 ▲22 | 18.70 ▲0.97 | 631.87 ▲9.55 | 63.26 ▲13.25 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.09 | 95.28 ▼6.05 | 41.81 ▼5.19 |
Advance Canonical Settings /wp-admin/options-general.php?page=advance_canonical_settings | 829 | 2.03 | 30.26 | 27.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Option for administrators to select canonical method.), #2 (Meta Box option for each post, page and custom post type.)
advance-canonical-url/functions.php 85% from 13 tests
The main PHP script in "Advance Canonical URL" version 1.0.2 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advance-canonical-url.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin361 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 127 | 306 |
CSS | 1 | 8 | 3 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 53.89KB | 16.41KB | ▼ 69.55% |
screenshot-2.png | 13.29KB | 5.95KB | ▼ 55.26% |