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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.77ms] Passed 4 tests
Analyzing server-side resources used by Pickit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.24 ▼10.26 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.99 ▼17.65 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.21 ▼9.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.35 ▼17.75 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.32 ▲0.46 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pickit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.18 ▼1.19 | 1.98 ▲0.20 | 42.92 ▲3.55 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.98 | 98.92 ▼5.31 | 38.27 ▼4.95 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.02 | 34.25 ▼2.03 | 33.44 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,514 ▼6 | 17.54 ▼5.58 | 677.44 ▲0.27 | 69.25 ▲11.90 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▲0.05 | 114.98 ▲12.25 | 47.86 ▲0.78 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- 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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: args in wp-content/plugins/pickit/templates/adminlist-gotopickit.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Pickit\\Helper\\Helper' not found in wp-content/plugins/pickit/templates/checkout-point-selector.php:4
- > PHP Fatal error
Trait 'Ecomerciar\\Pickit\\Helper\\TemplatesTrait' not found in wp-content/plugins/pickit/src/helper/class-helper.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pickit/templates/adminlist-gotopickit.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Pickit\\Helper\\Helper' not found in wp-content/plugins/pickit/templates/checkout-point-map-selector.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pickit/templates/adminlist-gotopickit.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Pickit\\Api\\ApiConnector' not found in wp-content/plugins/pickit/src/api/class-pickit-api.php:9
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Pickit\\Helper\\Helper' not found in wp-content/plugins/pickit/templates/pickitpanel-init.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pickit/templates/adminlist-gotopickit.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Ecomerciar\\Pickit\\Helper\\Helper' not found in wp-content/plugins/pickit/templates/page-onboarding.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
pickit/pickit-woo.php 77% from 13 tests
The entry point to "Pickit" version 3.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pickit.php" instead of "pickit-woo.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.7" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,391 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 434 | 847 | 3,008 |
CSS | 3 | 60 | 21 | 383 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 7 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 97 | 76.38% |
▷ Public methods | 119 | 93.70% |
▷ Protected methods | 3 | 2.36% |
▷ Private methods | 5 | 3.94% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/processing.png | 154.67KB | 39.19KB | ▼ 74.66% |
assets/img/pickit_isologo.png | 3.09KB | 1.99KB | ▼ 35.56% |
assets/img/pickit-woo-icons.png | 12.84KB | 5.63KB | ▼ 56.13% |
assets/img/error.png | 2.05KB | 1.12KB | ▼ 45.67% |
assets/img/pickit-left-pane-img.png | 132.64KB | 39.46KB | ▼ 70.25% |