Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.82ms] Passed 4 tests
An overview of server-side resources used by WordPress Graphs & Charts - Easy Interactive HTML5 Charts Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.39 ▼0.75 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.98 ▼13.03 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.69 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 92.10 ▼2.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 38.71 ▲7.26 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
graphs_lite_all_data |
Browser metrics Passed 4 tests
WordPress Graphs & Charts - Easy Interactive HTML5 Charts Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 15.83 ▲1.25 | 6.41 ▲4.69 | 39.13 ▼5.42 |
Dashboard /wp-admin | 2,264 ▲76 | 6.35 ▲0.47 | 140.51 ▲39.02 | 41.97 ▲0.45 |
Posts /wp-admin/edit.php | 2,150 ▲58 | 3.33 ▲1.29 | 50.55 ▲5.21 | 34.16 ▼4.40 |
Add New Post /wp-admin/post-new.php | 6,255 ▲4,722 | 26.94 ▲3.94 | 938.11 ▲263.33 | 41.79 ▼13.12 |
Media Library /wp-admin/upload.php | 1,446 ▲55 | 5.66 ▲1.45 | 106.51 ▲5.83 | 44.57 ▼0.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- graphs_lite_all_data
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/graph-lite/admin/partials/graphs-lite-admin-new-chart.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/graph-lite/admin/partials/graphs-lite-admin-display.php:25
- > PHP Fatal error
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 90% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 49 tag instead of maximum 10
graph-lite/graphs-lite.php 85% from 13 tests
The primary PHP file in "WordPress Graphs & Charts - Easy Interactive HTML5 Charts Plugin" version 2.0.8 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("graph-lite.php" instead of "graphs-lite.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected17,372 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,759 | 2,722 | 13,236 |
Vuejs Component | 10 | 149 | 8 | 3,517 |
CSS | 4 | 41 | 20 | 372 |
PHP | 10 | 135 | 242 | 247 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/16x16.png | 16.57KB | 1.78KB | ▼ 89.27% |
admin/images/back-arrow.png | 1.34KB | 1.47KB | 0.00% |