Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.29MB] [CPU: ▲4.38ms] 75% from 4 tests
Server-side resources used by picu - WordPress Photo Proofing Gallery
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 689.55ms on /wp-admin/admin.php?page=picu-tools-debug)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.28 | 48.28 ▲7.15 |
Dashboard /wp-admin | 4.60 ▲1.30 | 52.82 ▲0.41 |
Posts /wp-admin/edit.php | 4.66 ▲1.30 | 53.49 ▲4.30 |
Add New Post /wp-admin/post-new.php | 7.19 ▲1.30 | 100.79 ▲5.65 |
Media Library /wp-admin/upload.php | 4.53 ▲1.30 | 49.84 ▲15.32 |
Design/Appearance /wp-admin/admin.php?page=picu-design-appearance | 4.54 | 47.21 |
Settings /wp-admin/admin.php?page=picu-settings | 4.32 | 32.51 |
General /wp-admin/admin.php?page=picu-general | 4.53 | 46.80 |
Tools/Debug /wp-admin/admin.php?page=picu-tools-debug | 5.26 | 689.55 |
picu Pro /wp-admin/admin.php?page=picu-add-ons | 4.53 | 45.70 |
Email /wp-admin/admin.php?page=picu-email | 4.53 | 47.66 |
Telemetry /wp-admin/admin.php?page=picu-telemetry | 4.53 | 46.72 |
picu Welcome Screen /wp-admin/index.php?page=picu-welcome-screen | 4.53 | 46.57 |
All Collections /wp-admin/edit.php?post_type=picu_collection | 4.57 | 52.55 |
Security /wp-admin/admin.php?page=picu-security | 4.53 | 49.23 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 221 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
picu_settings_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by picu - WordPress Photo Proofing Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲98 | 14.72 ▲0.32 | 1.61 ▲0.04 | 38.51 ▼4.49 |
Dashboard /wp-admin | 2,247 ▲69 | 5.62 ▲0.00 | 84.72 ▼36.03 | 36.47 ▼9.19 |
Posts /wp-admin/edit.php | 2,152 ▲70 | 2.03 ▲0.05 | 38.52 ▲0.29 | 33.26 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.31 ▼0.23 | 637.28 ▲14.90 | 65.60 ▲11.64 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.25 ▲0.02 | 99.55 ▲1.07 | 40.70 ▼0.86 |
Design/Appearance /wp-admin/admin.php?page=picu-design-appearance | 1,259 | 4.18 | 85.06 | 82.50 |
Settings /wp-admin/admin.php?page=picu-settings | 1,267 | 4.23 | 87.91 | 88.46 |
General /wp-admin/admin.php?page=picu-general | 1,264 | 4.17 | 72.74 | 80.40 |
Tools/Debug /wp-admin/admin.php?page=picu-tools-debug | 1,287 | 4.19 | 74.64 | 80.39 |
picu Pro /wp-admin/admin.php?page=picu-add-ons | 1,497 | 4.12 | 74.36 | 96.53 |
Email /wp-admin/admin.php?page=picu-email | 1,341 | 4.14 | 72.17 | 80.21 |
Telemetry /wp-admin/admin.php?page=picu-telemetry | 1,276 | 4.18 | 78.38 | 78.99 |
picu Welcome Screen /wp-admin/index.php?page=picu-welcome-screen | 1,227 | 4.16 | 72.72 | 76.56 |
All Collections /wp-admin/edit.php?post_type=picu_collection | 1,182 | 1.96 | 34.70 | 37.07 |
Security /wp-admin/admin.php?page=picu-security | 1,240 | 4.14 | 77.19 | 89.24 |
Uninstaller [IO: ▲1.63MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options detected upon uninstall: 8 options
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/picu/backend/includes/picu-media.php+15
Cannot redeclare picu_delete_attached_media() (previously declared in wp-content/plugins/picu/backend/includes/picu-media.php:15)
- This plugin has failed uninstalling correctly, leaving 221 files (1.63MB) in the plugin directory
- (new file) backend/images/add-ons/add-on-download-icon.png
- (new file) backend/css/picu-admin.css
- (new file) backend/images/add-ons/add-on-mark-comment-icon.png
- (new file) backend/images/add-ons/add-on-theft-protection-icon.png
- (new file) backend/images/add-ons/add-on-mutli-client-support-icon.png
- (new file) backend/images/add-ons/add-on-selection-options-icon.png
- (new file) backend/images/add-ons/add-on-brand-customize-icon.png
- (new file) backend/images/add-ons/add-on-delivery-icon.png
- (new file) backend/css/picu-admin.css.map
- (new file) backend/images/add-ons/add-on-import-icon.png
- ...
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- db_upgraded
- can_compress_scripts
- picu_settings_version
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Please fix the following items
- 76× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/picu/vendor/sabberworm/php-css-parser/src/RuleSet/DeclarationBlock.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/picu/vendor/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/picu/vendor/symfony/css-selector/Node/CombinedSelectorNode.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/picu/vendor/symfony/css-selector/Parser/Handler/NumberHandler.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/picu/frontend/js/templates/picu-collection-info.php:7
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\SourceException' not found in wp-content/plugins/picu/vendor/sabberworm/php-css-parser/src/Parsing/UnexpectedTokenException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/picu/vendor/sabberworm/php-css-parser/src/Value/RuleValueList.php:5
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\CssSelector\ode\\AbstractNode' not found in wp-content/plugins/picu/vendor/symfony/css-selector/Node/ClassNode.php:24
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSBlockList' not found in wp-content/plugins/picu/vendor/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\CssSelector\\XPath\\TranslatorInterface' not found in wp-content/plugins/picu/vendor/symfony/css-selector/XPath/Translator.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
picu/picu.php Passed 13 tests
Analyzing the main PHP file in "picu - WordPress Photo Proofing Gallery" version 2.0.3
61 characters long description:
Send a collection of photographs to your client for approval.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,886 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 3,344 | 7,204 | 13,722 |
JavaScript | 18 | 257 | 192 | 847 |
JSON | 1 | 0 | 0 | 298 |
SVG | 10 | 0 | 0 | 10 |
XML | 1 | 0 | 0 | 5 |
CSS | 4 | 1 | 4 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 9 | 9.09% |
▷ Concrete classes | 90 | 90.91% |
▷ Final classes | 2 | 2.22% |
Methods | 712 | |
▷ Static methods | 65 | 9.13% |
▷ Public methods | 608 | 85.39% |
▷ Protected methods | 7 | 0.98% |
▷ Private methods | 97 | 13.62% |
Functions | 223 | |
▷ Named functions | 198 | 88.79% |
▷ Anonymous functions | 25 | 11.21% |
Constants | 57 | |
▷ Global constants | 11 | 19.30% |
▷ Class constants | 46 | 80.70% |
▷ Public constants | 33 | 71.74% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
22 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend/images/list.png | 0.49KB | 0.19KB | ▼ 61.90% |
backend/images/dark-theme.png | 0.37KB | 0.37KB | 0.00% |
backend/images/image-size-large.png | 1.29KB | 1.03KB | ▼ 20.05% |
backend/images/add-ons/add-on-theft-protection-icon.png | 26.74KB | 16.72KB | ▼ 37.48% |
backend/images/add-ons/add-on-delivery-icon.png | 6.24KB | 3.82KB | ▼ 38.68% |