Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲1.50MB] [CPU: ▲6.01ms] 75% from 4 tests
Analyzing server-side resources used by XcooBee for WordPress
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,860.52ms on /wp-admin/admin.php?page=xcoobee&tab=addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.94 ▲1.48 | 58.25 ▲12.40 |
Dashboard /wp-admin | 4.87 ▲1.52 | 64.96 ▼4.04 |
Posts /wp-admin/edit.php | 4.92 ▲1.56 | 72.62 ▲13.36 |
Add New Post /wp-admin/post-new.php | 7.40 ▲1.52 | 99.72 ▲2.31 |
Media Library /wp-admin/upload.php | 4.73 ▲1.50 | 54.70 ▲17.99 |
Addons /wp-admin/admin.php?page=xcoobee&tab=addons | 4.92 | 1,860.52 |
General /wp-admin/admin.php?page=xcoobee | 4.73 | 47.61 |
Server storage [IO: ▲4.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 625 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for XcooBee for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲189 | 14.05 ▼0.33 | 10.54 ▲8.33 | 44.55 ▲4.07 |
Dashboard /wp-admin | 2,266 ▲81 | 4.97 ▼0.91 | 104.69 ▼16.92 | 73.74 ▲27.47 |
Posts /wp-admin/edit.php | 2,161 ▲69 | 2.11 ▲0.12 | 42.49 ▲4.72 | 35.91 ▼4.96 |
Add New Post /wp-admin/post-new.php | 1,563 ▲35 | 21.63 ▼1.36 | 735.10 ▲70.33 | 60.31 ▲1.66 |
Media Library /wp-admin/upload.php | 1,457 ▲69 | 4.24 ▲0.00 | 104.45 ▼7.62 | 65.15 ▲18.87 |
Addons /wp-admin/admin.php?page=xcoobee&tab=addons | 1,139 | 2.36 | 26.73 | 27.28 |
General /wp-admin/admin.php?page=xcoobee | 1,045 | 2.11 | 26.72 | 37.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/xcoobee/includes/sdk/test/integration/bootstrap.php
- 281× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/monolog/monolog/tests/Monolog/Formatter/WildfireFormatterTest.php:16
- > PHP Fatal error
Uncaught Error: Class 'XcooBee\\Test\\TestCase' not found in wp-content/plugins/xcoobee/includes/sdk/test/src/XcooBee/Http/ClientTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/guzzlehttp/promises/src/AggregateException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/monolog/monolog/src/Monolog/Handler/GroupHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/phpseclib/phpseclib/phpseclib/Crypt/DES.php:52
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/monolog/monolog/src/Monolog/Handler/GelfHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\SocketHandler' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/monolog/monolog/src/Monolog/Handler/PushoverHandler.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/xcoobee/includes/sdk/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught XcooBee\\Exception\\XcooBeeException: File /home/potrivit/.xcoobee/config doesn't exist in wp-content/plugins/xcoobee/includes/sdk/src/XcooBee/Models/ConfigModel.php:83
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: gdpr, consent, privacy, security, cookie...
xcoobee/xcoobee.php 92% from 13 tests
The main PHP file in "XcooBee for WordPress" ver. 1.7.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin60,691 lines of code in 491 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 411 | 10,550 | 26,770 | 52,473 |
Markdown | 29 | 1,926 | 0 | 5,412 |
JSON | 15 | 0 | 0 | 1,265 |
SVG | 11 | 1 | 4 | 539 |
JavaScript | 11 | 75 | 88 | 400 |
CSS | 6 | 9 | 11 | 396 |
HTML | 1 | 1 | 5 | 96 |
XML | 5 | 14 | 0 | 76 |
YAML | 1 | 2 | 0 | 25 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 628.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 49 | |
Interfaces | 33 | |
Traits | 4 | |
Classes | 406 | |
▷ Abstract classes | 11 | 2.71% |
▷ Concrete classes | 395 | 97.29% |
▷ Final classes | 8 | 2.03% |
Methods | 3,246 | |
▷ Static methods | 180 | 5.55% |
▷ Public methods | 2,802 | 86.32% |
▷ Protected methods | 245 | 7.55% |
▷ Private methods | 199 | 6.13% |
Functions | 320 | |
▷ Named functions | 84 | 26.25% |
▷ Anonymous functions | 236 | 73.75% |
Constants | 313 | |
▷ Global constants | 29 | 9.27% |
▷ Class constants | 284 | 90.73% |
▷ Public constants | 284 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/sdk/example/assets/nature.png | 89.48KB | 28.14KB | ▼ 68.55% |