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
Install script ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼19.35ms] Passed 4 tests
A check of server-side resources used by Central Hubb AdServer Client
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.13 ▼2.51 |
Dashboard /wp-admin | 3.44 ▲0.10 | 57.35 ▼10.34 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 51.34 ▲2.03 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.56 | 40.26 ▼66.58 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 43.13 ▲2.93 |
Placeholders /wp-admin/admin.php?page=central-hubb-ad-server-placeholders | 3.34 | 37.42 |
Reports: Clicks /wp-admin/admin.php?page=central-hubb-ad-server-analytics-reports-clicks | 3.34 | 36.24 |
Charts: Impressions /wp-admin/admin.php?page=central-hubb-ad-server-analytics-charts-impressions | 3.34 | 34.75 |
Placements /wp-admin/admin.php?page=central-hubb-ad-server-placements | 3.34 | 40.86 |
Reports: Impressions /wp-admin/admin.php?page=central-hubb-ad-server-analytics-reports-impressions | 3.34 | 33.66 |
Placement Previews /wp-admin/admin.php?page=central-hubb-ad-server-placement-previews | 3.34 | 37.69 |
Account Settings /wp-admin/admin.php?page=central-hubb-ad-server-my-account | 3.34 | 35.45 |
Images /wp-admin/admin.php?page=central-hubb-ad-server-images | 3.34 | 37.90 |
CentralHubb Settings /wp-admin/options-general.php?page=central-hubb-settings | 3.33 | 34.40 |
Publishers /wp-admin/admin.php?page=central-hubb-ad-server-publishers | 3.34 | 38.10 |
Server storage [IO: ▲5.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Central Hubb AdServer Client
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,002 ▲256 | 13.39 ▼0.97 | 8.87 ▲7.09 | 41.91 ▼3.83 |
Dashboard /wp-admin | 2,274 ▲97 | 5.63 ▼0.02 | 88.45 ▼3.72 | 40.78 ▼1.45 |
Posts /wp-admin/edit.php | 2,179 ▲79 | 2.00 ▼0.04 | 39.89 ▲2.75 | 34.78 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,587 ▲59 | 23.18 ▲0.28 | 688.69 ▼8.14 | 53.17 ▼4.56 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.29 ▲0.04 | 98.42 ▼15.13 | 42.96 ▼5.01 |
Placeholders /wp-admin/admin.php?page=central-hubb-ad-server-placeholders | 871 | 2.19 | 23.74 | 22.26 |
Reports: Clicks /wp-admin/admin.php?page=central-hubb-ad-server-analytics-reports-clicks | 868 | 2.22 | 24.21 | 22.69 |
Charts: Impressions /wp-admin/admin.php?page=central-hubb-ad-server-analytics-charts-impressions | 868 | 2.19 | 23.66 | 23.53 |
Placements /wp-admin/admin.php?page=central-hubb-ad-server-placements | 853 | 1.84 | 32.11 | 31.62 |
Reports: Impressions /wp-admin/admin.php?page=central-hubb-ad-server-analytics-reports-impressions | 871 | 2.19 | 23.83 | 22.55 |
Placement Previews /wp-admin/admin.php?page=central-hubb-ad-server-placement-previews | 868 | 2.19 | 24.06 | 23.30 |
Account Settings /wp-admin/admin.php?page=central-hubb-ad-server-my-account | 853 | 1.84 | 24.91 | 23.15 |
Images /wp-admin/admin.php?page=central-hubb-ad-server-images | 868 | 2.19 | 23.96 | 23.48 |
CentralHubb Settings /wp-admin/options-general.php?page=central-hubb-settings | 878 | 2.01 | 25.42 | 25.95 |
Publishers /wp-admin/admin.php?page=central-hubb-ad-server-publishers | 868 | 2.19 | 26.62 | 21.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\CentralHubbAttributes' not found in wp-content/plugins/centralhubb-wp-adserver-client/classes/base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\CentralhubbBase' not found in wp-content/plugins/centralhubb-wp-adserver-client/classes/plugin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/centralhubb-wp-adserver-client/config/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\CentralhubbBase' not found in wp-content/plugins/centralhubb-wp-adserver-client/classes/settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/centralhubb-wp-adserver-client/config/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/centralhubb-wp-adserver-client/server/modules/default/views/index/index.php:8
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\Mvc\\Controllers\\BaseController' not found in wp-content/plugins/centralhubb-wp-adserver-client/server/modules/default/controllers/IndexController.php:10
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\CentralhubbBase' not found in wp-content/plugins/centralhubb-wp-adserver-client/classes/mvc.php:10
- > PHP Fatal error
Uncaught Error: Class 'CentralHubb\\CentralhubbBase' not found in wp-content/plugins/centralhubb-wp-adserver-client/classes/api.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: central hubb, wordpresscom, short tags, images, videos...
centralhubb-wp-adserver-client/index.php 85% from 13 tests
The main PHP file in "Central Hubb AdServer Client" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 291 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("centralhubb-wp-adserver-client.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected588 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 132 | 245 | 457 |
JavaScript | 1 | 64 | 66 | 129 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 5.37MB with 4.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 579.51KB | 148.63KB | ▼ 74.35% |
assets/screenshot-4.png | 1,164.62KB | 345.05KB | ▼ 70.37% |
assets/screenshot-6.png | 1,455.93KB | 364.46KB | ▼ 74.97% |
assets/screenshot-5.png | 1,001.73KB | 252.13KB | ▼ 74.83% |
assets/screenshot-3.png | 521.35KB | 113.06KB | ▼ 78.31% |