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.02MB] [CPU: ▼5.38ms] Passed 4 tests
Analyzing server-side resources used by Chart Expert
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.52 ▲0.37 |
Dashboard /wp-admin | 3.33 ▼0.01 | 47.77 ▼16.81 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.80 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.32 ▼0.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.67 ▼0.67 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Chart Expert
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 14.42 ▲0.04 | 6.76 ▲4.88 | 41.36 ▼2.05 |
Dashboard /wp-admin | 2,221 ▲36 | 5.39 ▼0.42 | 112.84 ▼2.53 | 44.17 ▲2.11 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.70 ▲0.70 | 37.76 ▼0.89 | 36.08 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.69 ▲0.29 | 595.00 ▼81.91 | 35.58 ▼26.43 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.70 ▲0.58 | 100.62 ▼13.22 | 44.43 ▼3.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% 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
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/chart-expert/chartLoadFunction.php:18
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/chart-expert/chartLoadFunction.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chart-expert/inc/shortcode-button.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chart-expert/inc/shortcode.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chart-expert/inc/pmzez-chart-expert-admin-css.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in chart-expert/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
chart-expert/chartLoadFunction.php 85% from 13 tests
The primary PHP file in "Chart Expert" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 292 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("chart-expert.php" instead of "chartLoadFunction.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 detected10,865 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 588 | 20 | 10,496 |
CSS | 4 | 48 | 14 | 239 |
PHP | 4 | 29 | 18 | 130 |
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.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/css/chart-expert.png | 1.56KB | 0.93KB | ▼ 40.09% |