Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼147.61ms] Passed 4 tests
Server-side resources used by CoCoHub
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.07 | 27.24 ▲3.02 |
Dashboard /wp-admin | 3.14 ▲0.08 | 37.99 ▼4.80 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 32.79 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 73.88 ▼578.70 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 23.68 ▼3.69 |
CoCoHub Bot /wp-admin/options-general.php?page=cocohub-bot-settings | 3.06 | 22.43 |
Server storage [IO: ▲1.36MB] [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: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for CoCoHub
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,730 ▲129 | 16.70 ▲1.09 | 19.79 ▲14.71 | 76.73 ▲3.79 |
Dashboard /wp-admin | 2,934 ▲38 | 6.10 ▼0.06 | 121.31 ▼7.27 | 163.61 ▼18.15 |
Posts /wp-admin/edit.php | 2,742 ▲2 | 3.24 ▲0.01 | 63.68 ▼0.81 | 139.68 ▲2.50 |
Add New Post /wp-admin/post-new.php | 3,734 ▼73 | 18.50 ▼0.13 | 433.13 ▼9.16 | 156.81 ▼7.72 |
Media Library /wp-admin/upload.php | 1,760 ▲8 | 5.49 ▲0.04 | 139.75 ▼17.83 | 188.50 ▲2.35 |
CoCoHub Bot /wp-admin/options-general.php?page=cocohub-bot-settings | 1,208 | 2.36 | 53.37 | 132.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cocohub/includes/enqueue.php
- > /wp-content/plugins/cocohub/includes/shortcode.php
- > /wp-content/plugins/cocohub/cocohub.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cocohub/includes/CoCoBotSettings.php:374
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in cocohub/assets to your readme.txt
cocohub/cocohub.php 92% from 13 tests
This is the main PHP file of "CoCoHub" version 1.3.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin399 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 83 | 31 | 362 |
JSON | 2 | 0 | 0 | 35 |
HTML | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 2 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/logo192.png | 5.22KB | 5.57KB | 0.00% |
build/logo512.png | 9.44KB | 10.35KB | 0.00% |