Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼1.13ms] Passed 4 tests
This is a short check of server-side resources used by M Chart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 46.55 ▲5.91 |
Dashboard /wp-admin | 3.77 ▲0.46 | 51.49 ▼4.03 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 56.19 ▲4.86 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 102.90 ▼4.97 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 39.74 ▼0.38 |
Settings /wp-admin/edit.php?post_type=m-chart&page=m-chart-settings | 4.11 | 53.37 |
Charts /wp-admin/edit.php?post_type=m-chart | 3.72 | 43.09 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=m-chart | 3.66 | 42.77 |
Chart Units /wp-admin/edit-tags.php?taxonomy=m-chart-units&post_type=m-chart | 3.66 | 39.72 |
Add Chart /wp-admin/post-new.php?post_type=m-chart | 4.17 | 375.91 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=m-chart | 3.66 | 41.19 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
m-chart-units_children |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
category_children |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
M Chart: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 13.54 ▼0.84 | 5.70 ▲4.11 | 42.39 ▲0.47 |
Dashboard /wp-admin | 2,252 ▲61 | 4.86 ▼0.08 | 111.57 ▲5.40 | 41.27 ▼5.43 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 1.99 ▼0.04 | 41.24 ▲4.09 | 35.21 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 17.61 ▼5.66 | 598.38 ▼97.82 | 50.99 ▼22.28 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.29 ▲0.10 | 98.62 ▼5.31 | 40.96 ▼2.66 |
Settings /wp-admin/edit.php?post_type=m-chart&page=m-chart-settings | 3,940 | 2.18 | 26.69 | 33.72 |
Charts /wp-admin/edit.php?post_type=m-chart | 1,203 | 1.93 | 31.30 | 30.94 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=m-chart | 1,486 | 2.14 | 28.88 | 35.45 |
Chart Units /wp-admin/edit-tags.php?taxonomy=m-chart-units&post_type=m-chart | 1,308 | 2.13 | 26.32 | 28.99 |
Add Chart /wp-admin/post-new.php?post_type=m-chart | 4,312 | 6.28 | 340.42 | 54.32 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=m-chart | 1,350 | 2.27 | 29.87 | 29.69 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- category_children
- m-chart-units_children
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: chart in wp-content/plugins/m-chart/components/templates/chart-meta-box.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/m-chart/components/templates/spreadsheet-meta-box.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/m-chart/components/templates/iframe.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/m-chart/components/templates/subtitle-field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/m-chart/components/templates/m-chart-settings-chartjs.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/m-chart/components/templates/share.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/m-chart/components/templates/m-chart-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'ParseCsv\\enums\\AbstractEnum' not found in wp-content/plugins/m-chart/components/external/parsecsv/src/enums/SortEnum.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function m_chart() in wp-content/plugins/m-chart/components/templates/chartjs-chart.php:2
- > PHP Fatal error
Trait 'ParseCsv\\extensions\\DatatypeTrait' not found in wp-content/plugins/m-chart/components/external/parsecsv/src/Csv.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: highcharts, chartjs, charts, wordpress, graphs...
m-chart/m-chart.php Passed 13 tests
The main PHP file in "M Chart" ver. 1.10.1 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Manage data sets and display them as charts in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,117 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,076 | 679 | 4,493 |
PHP | 29 | 799 | 1,424 | 4,315 |
PO File | 2 | 292 | 316 | 630 |
CSS | 2 | 10 | 33 | 367 |
SVG | 20 | 0 | 11 | 284 |
Markdown | 1 | 5 | 0 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 57.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 218.00 |
Average method complexity | 5.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 9 | 7.03% |
▷ Public methods | 108 | 84.38% |
▷ Protected methods | 12 | 9.38% |
▷ Private methods | 8 | 6.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 16 | 100.00% |
▷ Public constants | 16 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
components/images/chart-placeholder.png | 19.50KB | 8.18KB | ▼ 58.03% |