Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.54ms] Passed 4 tests
Server-side resources used by Chartbeat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 41.05 ▲0.04 |
Dashboard /wp-admin | 3.42 ▲0.11 | 47.62 ▼6.28 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.24 ▼0.74 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.35 ▼14.83 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.94 ▼0.30 |
Chartbeat /wp-admin/options-general.php?page=chartbeat-options | 3.31 | 37.56 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_chartbeat_widget |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Chartbeat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲113 | 13.25 ▼1.11 | 2.04 ▲0.29 | 48.15 ▲2.35 |
Dashboard /wp-admin | 2,240 ▲52 | 5.83 ▼0.03 | 106.66 ▲3.91 | 88.99 ▲47.57 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.19 ▲0.19 | 40.47 ▲0.39 | 35.02 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 23.15 ▲0.13 | 660.96 ▼47.11 | 60.40 ▲7.83 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.14 ▼0.05 | 102.41 ▲5.87 | 70.13 ▲27.74 |
Chartbeat /wp-admin/options-general.php?page=chartbeat-options | 1,026 | 1.85 | 26.37 | 33.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_chartbeat_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chartbeat/chartbeat.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=chartbeat-options
- > Security (severe) in unknown
/wp-admin/options-general.php?page=chartbeat-options - Refused to execute script from '/wp-admin/admin-ajax.php?action=cbproxy-submit&url=%2Ftoppages%2F%3Fjsonp%3DCBTopPagesWidget.callback%26limit%3D10&cbnonce=f4c4727337' because its MIME type ('application/jsonp') is not executable, and strict MIME type checking is enabled.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is required in chartbeat/assets to your readme.txt
chartbeat/chartbeat.php Passed 13 tests
The entry point to "Chartbeat" version 2.0.7 is a PHP file that has certain tags in its header comment area
36 characters long description:
Adds Chartbeat pinging to Wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected953 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 88 | 43 | 548 |
CSS | 1 | 29 | 0 | 274 |
JavaScript | 2 | 5 | 27 | 131 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.75MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 194.81KB | 54.52KB | ▼ 72.02% |
media/chartbeat.png | 4.76KB | 1.85KB | ▼ 61.13% |
assets/icon-256x256.png | 4.76KB | 1.85KB | ▼ 61.13% |
assets/screenshot-2.png | 461.18KB | 133.89KB | ▼ 70.97% |
assets/screenshot-1.png | 104.97KB | 33.42KB | ▼ 68.16% |