Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.31ms] Passed 4 tests
An overview of server-side resources used by Colete-Online
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.27 ▼4.57 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.09 ▲4.22 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 46.00 ▲1.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.99 ▼2.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.00 ▲6.64 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Colete-Online
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲108 | 14.29 ▲0.07 | 2.02 ▲0.43 | 44.57 ▼0.21 |
Dashboard /wp-admin | 2,250 ▲70 | 5.55 ▼0.14 | 85.09 ▼2.22 | 42.81 ▲3.07 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.12 ▲0.11 | 35.55 ▲0.63 | 35.10 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.35 ▼0.14 | 662.23 ▼24.32 | 65.24 ▲10.05 |
Media Library /wp-admin/upload.php | 1,452 ▲58 | 4.21 ▲0.02 | 101.21 ▼0.23 | 44.75 ▲1.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- 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
Good news, no errors were detected
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/colete-online/public/partials/colete-online-public-display.php
- > /wp-content/plugins/colete-online/includes/class-colete-online-custom-ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: woocommerce, shipping
colete-online/colete-online.php 92% from 13 tests
Analyzing the main PHP file in "Colete-Online" version 1.4.3
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,968 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 718 | 427 | 4,734 |
JavaScript | 14 | 386 | 10 | 2,272 |
PO File | 1 | 240 | 561 | 648 |
CSS | 8 | 45 | 2 | 252 |
SVG | 3 | 0 | 1 | 62 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 33 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 185 | |
▷ Static methods | 19 | 10.27% |
▷ Public methods | 159 | 85.95% |
▷ Protected methods | 2 | 1.08% |
▷ Private methods | 24 | 12.97% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ 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
PNG images were not found in this plugin