Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼1.60ms] Passed 4 tests
A check of server-side resources used by amCharts: Charts and Maps
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 46.14 ▼1.09 |
Dashboard /wp-admin | 3.69 ▲0.38 | 54.37 ▲4.50 |
Posts /wp-admin/edit.php | 3.80 ▲0.45 | 50.02 ▲3.14 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.39 | 87.63 ▼12.93 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 43.85 ▲7.73 |
Add New /wp-admin/post-new.php?post_type=amchart | 3.88 | 53.96 |
Charts & Maps /wp-admin/options-general.php?page=amcharts | 3.85 | 81.55 |
Charts & Maps /wp-admin/edit.php?post_type=amchart | 3.70 | 39.79 |
Server storage [IO: ▲0.86MB] [DB: ▲0.11MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 131 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
amcharts_activated |
amcharts_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics 75% from 4 tests
amCharts: Charts and Maps: an overview of browser usage
Please improve the following
- Nodes: Limit the number of DOM nodes under 25,000 (currently 55,186 on /wp-admin/options-general.php?page=amcharts)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.38 ▲0.08 | 2.00 ▼0.07 | 43.86 ▼1.04 |
Dashboard /wp-admin | 2,232 ▲55 | 5.59 ▼0.04 | 98.34 ▲10.76 | 43.63 ▲0.91 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.99 ▼0.03 | 38.39 ▲2.90 | 33.26 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 17.68 ▲0.08 | 684.36 ▲4.94 | 54.16 ▼5.63 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.25 ▲0.05 | 105.47 ▲7.96 | 44.23 ▼1.55 |
Add New /wp-admin/post-new.php?post_type=amchart | 4,542 | 4.66 | 115.24 | 82.35 |
Charts & Maps /wp-admin/options-general.php?page=amcharts | 55,186 | 5.20 | 276.41 | 310.32 |
Charts & Maps /wp-admin/edit.php?post_type=amchart | 1,300 | 3.27 | 46.20 | 32.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.11MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- amcharts_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 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
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function amcharts_split_libs() in wp-content/plugins/amcharts-charts-and-maps/includes/preview.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/amcharts-charts-and-maps/amcharts.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amcharts-charts-and-maps/includes/editing.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amcharts-charts-and-maps/includes/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amcharts-charts-and-maps/includes/setup.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: charts, ammap, maps, amcharts, javascript charts...
amcharts-charts-and-maps/amcharts.php 85% from 13 tests
The entry point to "amCharts: Charts and Maps" version 1.4.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("amcharts-charts-and-maps.php" instead of "amcharts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,860 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 1,311 | 1,052 | 10,581 |
PHP | 6 | 247 | 279 | 1,308 |
CSS | 5 | 83 | 58 | 847 |
HTML | 9 | 129 | 1 | 765 |
PO File | 1 | 122 | 143 | 358 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 50 | |
▷ Named functions | 50 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
lib/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
lib/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
lib/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
images/icon_charts2.png | 1.27KB | 0.69KB | ▼ 45.59% |