Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.24MB] [CPU: ▼4.15ms] Passed 4 tests
Server-side resources used by Easy Charts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 43.87 ▼1.37 |
Dashboard /wp-admin | 3.54 ▲0.24 | 47.28 ▼3.91 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 49.59 ▲3.28 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 90.81 ▼12.29 |
Media Library /wp-admin/upload.php | 3.46 ▲0.24 | 39.18 ▲0.99 |
Add New /wp-admin/post-new.php?post_type=easy_charts | 3.78 | 50.61 |
Charts settings /wp-admin/edit.php?post_type=easy_charts&page=easy-charts-settings | 3.43 | 32.99 |
All Charts /wp-admin/edit.php?post_type=easy_charts | 3.51 | 37.28 |
Server storage [IO: ▲5.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 179 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Charts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.25 ▲0.06 | 1.73 ▼0.10 | 48.64 ▲4.49 |
Dashboard /wp-admin | 2,227 ▲50 | 5.53 ▼0.18 | 88.04 ▼10.99 | 40.89 ▼3.38 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.02 ▲0.04 | 34.50 ▼2.03 | 33.44 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,619 ▲84 | 20.80 ▲2.52 | 751.89 ▲102.37 | 37.48 ▼37.15 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.22 ▼0.00 | 95.48 ▼20.17 | 44.95 ▼3.22 |
Add New /wp-admin/post-new.php?post_type=easy_charts | 6,598 | 4.70 | 275.42 | 120.05 |
Charts settings /wp-admin/edit.php?post_type=easy_charts&page=easy-charts-settings | 820 | 1.99 | 24.40 | 25.37 |
All Charts /wp-admin/edit.php?post_type=easy_charts | 1,102 | 1.98 | 30.37 | 29.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-charts/public/partials/easy-charts-public-display.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-charts/admin/partials/easy-charts-shortcode-metabox-display.php:19
- > PHP Fatal error
Uncaught Error: Class 'Easy_Charts' not found in wp-content/plugins/easy-charts/admin/partials/easy-charts-preview-metabox-display.php:15
- > PHP Fatal error
Uncaught Error: Class 'Easy_Charts' not found in wp-content/plugins/easy-charts/admin/partials/easy-charts-data-metabox-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/easy-charts/admin/partials/easy-charts-settings-page-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'Easy_Charts' not found in wp-content/plugins/easy-charts/admin/partials/easy-charts-configuration-metabox-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easy-charts/easy-charts.php Passed 13 tests
The primary PHP file in "Easy Charts" version 1.2.2 is used by WordPress to initiate all plugin functionality
74 characters long description:
Build simple, reusable, customisable charts on any page or post with ease.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin77,965 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 106 | 3,217 | 3,317 | 73,380 |
CSS | 14 | 419 | 324 | 2,283 |
PHP | 16 | 356 | 785 | 1,521 |
SVG | 1 | 0 | 0 | 655 |
Sass | 1 | 15 | 0 | 102 |
Markdown | 1 | 9 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 40 | 85.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.89% |
Functions | 3 | |
▷ Named functions | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-bg_diagonals-thick_20_e69700_40x40.png | 0.41KB | 0.15KB | ▼ 62.35% |
admin/css/images/ui-bg_highlight-soft_100_f9f9f9_1x100.png | 0.27KB | 0.10KB | ▼ 61.73% |
admin/css/images/ui-icons_ff0084_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_0b54d5_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
admin/css/images/ui-icons_0a82eb_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |