Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.16ms] Passed 4 tests
Analyzing server-side resources used by Canto
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 44.00 ▲6.40 |
Dashboard /wp-admin | 3.58 ▲0.28 | 51.82 ▲3.87 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 50.22 ▲9.26 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 85.26 ▼13.06 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 42.78 ▲7.44 |
Canto /wp-admin/options-general.php?page=canto_settings | 3.50 | 38.48 |
Server storage [IO: ▲6.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
canto_version |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Canto: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.55 ▼0.08 | 1.66 ▼0.04 | 46.15 ▲6.23 |
Dashboard /wp-admin | 2,210 ▲32 | 5.65 ▼0.06 | 96.43 ▼16.19 | 41.46 ▼9.69 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.04 ▲0.01 | 35.31 ▲1.84 | 30.68 ▼5.83 |
Add New Post /wp-admin/post-new.php | 6,378 ▲4,852 | 27.68 ▲4.11 | 991.25 ▲320.15 | 43.39 ▼15.36 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▼0.00 | 94.22 ▼4.78 | 43.05 ▼1.18 |
Canto /wp-admin/options-general.php?page=canto_settings | 1,019 | 3.16 | 47.75 | 29.16 |
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 7 options in the database
- canto_version
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 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 50% from 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 following issues need your attention
- 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(wp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/canto/includes/lib/copy-media.php on line 56
- > PHP Warning
include_once(wp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/canto/includes/lib/sizes.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/canto/includes/lib/media-upload.php:9
- > PHP Notice
Undefined index: wp_abspath in wp-content/plugins/canto/includes/lib/detail.php on line 3
- > PHP Notice
Undefined index: abspath in wp-content/plugins/canto/includes/lib/sizes.php on line 15
- > PHP Warning
require_once(/wp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/canto/includes/lib/download.php on line 5
- > PHP Warning
include_once(wp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/canto/includes/lib/sizes.php on line 15
- > PHP Fatal error
require_once(): Failed opening required '/wp-admin/admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/canto/includes/lib/download.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/canto/includes/lib/sizes.php:21
- > PHP Notice
Undefined index: abspath in wp-content/plugins/canto/includes/lib/sizes.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: canto, cloud storage, photo library, digital asset management, image management...
canto/canto.php 92% from 13 tests
Analyzing the main PHP file in "Canto" version 3.0.6
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,492 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 3,385 |
PHP | 17 | 475 | 641 | 1,888 |
JavaScript | 14 | 112 | 67 | 906 |
CSS | 4 | 9 | 18 | 204 |
HTML | 2 | 6 | 0 | 51 |
LESS | 1 | 10 | 14 | 44 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.65% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 4 | 100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/document-icon.png | 2.31KB | 1.29KB | ▼ 43.99% |
assets/canto-icon.png | 1.65KB | 0.83KB | ▼ 49.91% |