Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/page-charts/db_config.php+26
Undefined variable: welcome_name
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.48ms] Passed 4 tests
Server-side resources used by Page Charts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.83 ▼8.03 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.61 ▼3.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.44 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.95 ▼9.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.68 ▲2.22 |
Page Charts /wp-admin/plugins.php?page=page-charts | 3.21 | 32.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_charts_js_library |
wp_hchart_names |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
tab_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Page Charts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.43 ▼0.94 | 8.88 ▲7.15 | 41.41 ▼5.26 |
Dashboard /wp-admin | 2,203 ▲23 | 5.61 ▲0.09 | 96.28 ▼0.03 | 44.08 ▲1.96 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.04 ▲0.08 | 37.24 ▼0.61 | 35.86 ▼1.16 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.06 ▼0.15 | 668.24 ▼23.18 | 59.13 ▲4.32 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.22 ▲0.11 | 96.44 ▼16.36 | 42.15 ▼3.99 |
Page Charts /wp-admin/plugins.php?page=page-charts | 865 | 2.02 | 27.56 | 26.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_charts_js_library
- wp_hchart_names
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- tab_db_version
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
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/page-charts/page-charts.php:11
- > PHP Warning
Use of undefined constant label - assumed 'label' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-charts/examples/chart_bar.php on line 3
- > PHP Warning
Use of undefined constant datasets - assumed 'datasets' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-charts/examples/chart_bar.php on line 3
- > PHP Warning
Use of undefined constant backgroundColor - assumed 'backgroundColor' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-charts/examples/chart_bar.php on line 4
- > PHP Warning
Use of undefined constant labels - assumed 'labels' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-charts/examples/chart_bar.php on line 2
- > PHP Warning
Use of undefined constant data - assumed 'data' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-charts/examples/chart_bar.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
8 plugin tags: chart, line, polygon, column, pie...
page-charts/page-charts.php Passed 13 tests
"Page Charts" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
32 characters long description:
Javascript charts for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin553 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 6 | 346 |
JavaScript | 2 | 17 | 2 | 178 |
CSS | 1 | 0 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG files were detected