Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.71MB] [CPU: ▲27.30ms] Passed 4 tests
Server-side resources used by Content Hubs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.49 ▲5.03 | 74.23 ▲29.87 |
Dashboard /wp-admin | 8.51 ▲5.21 | 76.45 ▲23.53 |
Posts /wp-admin/edit.php | 8.51 ▲5.16 | 75.01 ▲26.39 |
Add New Post /wp-admin/post-new.php | 9.31 ▲3.43 | 126.48 ▲29.41 |
Media Library /wp-admin/upload.php | 8.51 ▲5.28 | 76.45 ▲37.72 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.51 | 64.65 |
Server storage [IO: ▲4.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 217 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_active_plugins |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
fs_accounts |
widget_recent-comments |
fs_gdpr |
Browser metrics Passed 4 tests
A check of browser resources used by Content Hubs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲255 | 15.34 ▲0.69 | 1.89 ▼0.05 | 35.88 ▼7.38 |
Dashboard /wp-admin | 2,407 ▲219 | 6.68 ▲1.81 | 116.68 ▲9.81 | 37.76 ▼0.08 |
Posts /wp-admin/edit.php | 2,313 ▲224 | 3.65 ▲1.61 | 54.18 ▲11.30 | 34.96 ▲0.11 |
Add New Post /wp-admin/post-new.php | 6,467 ▲4,944 | 27.91 ▲4.84 | 831.64 ▲208.59 | 38.83 ▼9.25 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.27 ▲0.07 | 84.55 ▼19.09 | 46.38 ▲0.09 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,277 | 3.31 | 41.94 | 27.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/content-hubs/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- can_compress_scripts
- fs_accounts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- fs_active_plugins
- fs_debug_mode
- db_upgraded
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/content-hubs/content-hubs.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: ch in wp-content/plugins/content-hubs/templates/block-content-hub.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/content-hubs/templates/edit_chps-content-hub.php:5
- > PHP Fatal error
Uncaught Error: Class 'CHPS_Includes\\Base\\BaseController' not found in wp-content/plugins/content-hubs/inc/Base/Enqueue.php:10
- > PHP Fatal error
Uncaught Error: Class 'CHPS_Includes\\Base\\BaseController' not found in wp-content/plugins/content-hubs/inc/Pages/Frontend.php:10
- > PHP Fatal error
Uncaught Error: Class 'CHPS_Includes\\Base\\BaseController' not found in wp-content/plugins/content-hubs/inc/Base/PostController.php:10
- > PHP Fatal error
Uncaught Error: Class 'CHPS_Includes\\Base\\BaseController' not found in wp-content/plugins/content-hubs/inc/Base/ContentHubController.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/content-hubs/templates/block-content-hub.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'CHPS_Includes\\Base\\BaseController' not found in wp-content/plugins/content-hubs/inc/Base/BlockController.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/content-hubs/templates/block-content-hub.php:4
- > PHP Notice
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 on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
There were not plugin tags detected
content-hubs/content-hubs.php Passed 13 tests
"Content Hubs" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Show multiple posts teaser in a grid.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin49,242 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 7,594 | 16,631 | 31,847 |
JSON | 5 | 0 | 0 | 16,231 |
JavaScript | 9 | 112 | 182 | 443 |
Sass | 3 | 57 | 7 | 361 |
CSS | 15 | 53 | 8 | 360 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 73.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 1 | 1.79% |
Methods | 1,203 | |
▷ Static methods | 204 | 16.96% |
▷ Public methods | 860 | 71.49% |
▷ Protected methods | 15 | 1.25% |
▷ Private methods | 328 | 27.27% |
Functions | 100 | |
▷ Named functions | 98 | 98.00% |
▷ Anonymous functions | 2 | 2.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.60MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/chps_logo.png | 15.81KB | 6.08KB | ▼ 61.51% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
blocks/content-hub-block/build/images/bg_black.ea598ab1.png | 280.32KB | 132.29KB | ▼ 52.81% |
assets/images/bg_black.png | 280.32KB | 132.29KB | ▼ 52.81% |