Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/advance-canonical-url/includes/canonical-meta-box.php+21
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.85MB] [CPU: ▼215.36ms] Passed 4 tests
This is a short check of server-side resources used by Advance Canonical URL
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.78 ▼1.05 | 5.00 ▼19.72 |
Dashboard /wp-admin | 1.80 ▼1.26 | 4.03 ▼34.04 |
Posts /wp-admin/edit.php | 1.80 ▼1.31 | 3.87 ▼27.95 |
Add New Post /wp-admin/post-new.php | 1.80 ▼3.64 | 4.47 ▼779.65 |
Media Library /wp-admin/upload.php | 1.80 ▼1.20 | 4.16 ▼19.78 |
Advance Canonical Settings /wp-admin/options-general.php?page=advance_canonical_settings | 1.80 | 4.05 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advance Canonical URL: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲73 | 15.84 ▲0.14 | 5.77 ▼3.91 | 77.47 ▲0.90 |
Dashboard /wp-admin | 2,935 ▲39 | 6.11 ▼0.07 | 122.51 ▼11.56 | 173.74 ▼2.42 |
Posts /wp-admin/edit.php | 2,745 ▲8 | 3.22 ▲0.00 | 67.48 ▲1.90 | 139.98 ▲2.70 |
Add New Post /wp-admin/post-new.php | 3,709 ▼21 | 18.83 ▲3.53 | 410.14 ▼35.27 | 159.11 ▼1.54 |
Media Library /wp-admin/upload.php | 1,757 ▲5 | 5.55 ▲0.04 | 144.58 ▼20.20 | 188.82 ▼0.05 |
Advance Canonical Settings /wp-admin/options-general.php?page=advance_canonical_settings | 1,109 | 2.41 | 51.88 | 122.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/advance-canonical-url/includes/canonical-meta-box.php+21
Trying to access array offset on value of type bool
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=advance_canonical_settings
- > Notice in wp-content/plugins/advance-canonical-url/includes/canonical-meta-box.php+21
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- 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 primary PHP file in "Advance Canonical URL" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin358 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 127 | 303 |
CSS | 1 | 8 | 3 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.53 |
▷ 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-2.png | 13.29KB | 5.95KB | ▼ 55.26% |
screenshot-1.png | 53.89KB | 16.41KB | ▼ 69.55% |