Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼1.01ms] 75% from 4 tests
A check of server-side resources used by CBX Poll
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,958.18ms on /wp-admin/edit.php?post_type=cbxpoll&page=cbxpoll-help-support)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.31 ▼2.85 |
Dashboard /wp-admin | 3.57 ▲0.27 | 47.33 ▼1.75 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 54.14 ▲5.29 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 92.75 ▼4.74 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.86 ▲7.04 |
Add New /wp-admin/post-new.php?post_type=cbxpoll | 3.63 | 55.94 |
Polls /wp-admin/edit.php?post_type=cbxpoll | 3.48 | 42.16 |
Helps & Updates /wp-admin/edit.php?post_type=cbxpoll&page=cbxpoll-help-support | 5.14 | 1,958.18 |
Settings /wp-admin/edit.php?post_type=cbxpoll&page=cbxpollsetting | 3.47 | 42.87 |
Server storage [IO: ▲1.77MB] [DB: ▲0.17MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 177 new files
Database: 1 new table, 12 new options
New tables |
---|
wp_cbxpoll_votes |
New WordPress options |
---|
cbxpoll_email_setting |
cbxpoll_global_settings |
widget_theysaidso_widget |
widget_recent-comments |
widget_cbxpollsingle |
can_compress_scripts |
cbxpoll_slugs_settings |
widget_recent-posts |
theysaidso_admin_options |
cbxpoll_use_php_sessions |
... |
Browser metrics Passed 4 tests
A check of browser resources used by CBX Poll
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲254 | 13.60 ▼0.37 | 9.85 ▲7.87 | 41.77 ▼7.36 |
Dashboard /wp-admin | 2,240 ▲52 | 5.87 ▲0.97 | 108.88 ▲4.63 | 70.65 ▲24.03 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.02 | 37.86 ▲1.05 | 32.38 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6,578 ▲5,044 | 27.02 ▲3.72 | 931.74 ▲313.13 | 39.20 ▼11.68 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.17 ▼0.01 | 104.88 ▼1.08 | 44.56 ▲0.81 |
Add New /wp-admin/post-new.php?post_type=cbxpoll | 3,127 | 8.46 | 248.39 | 200.16 |
Polls /wp-admin/edit.php?post_type=cbxpoll | 1,255 | 2.11 | 33.18 | 34.66 |
Helps & Updates /wp-admin/edit.php?post_type=cbxpoll&page=cbxpoll-help-support | 1,696 | 2.03 | 24.43 | 45.18 |
Settings /wp-admin/edit.php?post_type=cbxpoll&page=cbxpollsetting | 2,875 | 8.09 | 172.84 | 86.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.17MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_cbxpoll_votes
- Zombie WordPress options were found after uninstall: 12 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- cbxpoll_slugs_settings
- cbxpoll_tools
- widget_cbxpollsingle
- db_upgraded
- widget_recent-posts
- cbxpoll_global_settings
- ...
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
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cbxpoll/includes/libraries/wp_session/wp-session.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: poll, survey, contest, vote, quiz
cbxpoll/cbxpoll.php Passed 13 tests
The main file in "CBX Poll" v. 1.2.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
Poll and vote system for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin25,093 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 80 | 3,681 | 2,495 | 14,634 |
PHP | 31 | 1,953 | 3,099 | 6,168 |
CSS | 15 | 514 | 75 | 2,295 |
Sass | 5 | 337 | 32 | 1,925 |
SVG | 4 | 0 | 2 | 71 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 33.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 1 | 4.55% |
Methods | 275 | |
▷ Static methods | 52 | 18.91% |
▷ Public methods | 236 | 85.82% |
▷ Protected methods | 10 | 3.64% |
▷ Private methods | 29 | 10.55% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 21 | |
▷ Global constants | 12 | 57.14% |
▷ Class constants | 9 | 42.86% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
assets/css/ui-lightness/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
assets/images/move.png | 2.81KB | 0.13KB | ▼ 95.49% |
assets/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png | 0.26KB | 0.12KB | ▼ 53.44% |