Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.17MB] [CPU: ▼10.37ms] Passed 4 tests
Analyzing server-side resources used by iChart - Easy Charts and Graphs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.09 ▲4.70 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.75 ▼18.00 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.89 ▼13.67 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 81.51 ▼9.09 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 34.83 ▼0.71 |
Help /wp-admin/admin.php?page=qcopd_ichart_info_page | 3.37 | 34.29 |
Support /wp-admin/admin.php?page=qcopd_ichart_supports | 3.37 | 31.17 |
Server storage [IO: ▲5.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 142 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for iChart - Easy Charts and Graphs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,647 ▲886 | 14.86 ▲0.46 | 9.58 ▲7.96 | 31.64 ▼8.44 |
Dashboard /wp-admin | 2,938 ▲758 | 5.79 ▲0.12 | 119.87 ▲29.19 | 41.31 ▲1.99 |
Posts /wp-admin/edit.php | 2,845 ▲742 | 2.92 ▲0.92 | 64.01 ▲19.68 | 34.07 ▼1.87 |
Add New Post /wp-admin/post-new.php | 7,101 ▲5,573 | 28.96 ▲6.04 | 864.60 ▲184.15 | 37.03 ▼19.82 |
Media Library /wp-admin/upload.php | 2,137 ▲737 | 5.24 ▲0.94 | 132.53 ▲31.10 | 47.60 ▲3.17 |
Help /wp-admin/admin.php?page=qcopd_ichart_info_page | 1,734 | 2.66 | 50.92 | 31.69 |
Support /wp-admin/admin.php?page=qcopd_ichart_supports | 2,262 | 2.69 | 58.23 | 79.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ichart/qcld_ichart_main.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ichart/qc-ichart-info-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ichart/inc/covid19/includes/render_map.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ichart/class-qc-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/ichart/inc/covid19/includes/render_mapus.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ichart/inc/covid19/includes/render_card.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ichart/qcld_ichart_shortcode.php:152
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ichart/qc-support-promo-page/class-qc-support-promo-page.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=qcopd_ichart_info_page
- > Network (severe)
wp-content/plugins/ichart//assets/img/shortcode-generator.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=qcopd_ichart_info_page
- > Network (severe)
wp-content/plugins/ichart//assets/img/shortcode-modal.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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: corona, charts, covid, geochart, graphs...
ichart/qcld_ichart_main.php 77% from 13 tests
The main file in "iChart - Easy Charts and Graphs" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ichart.php" instead of "qcld_ichart_main.php")
- Domain Path: The domain path points to an invalid folder, "/lang/" does not exist
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected49,462 lines of code in 60 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 5,072 | 3,937 | 25,209 |
CSS | 10 | 153 | 85 | 12,571 |
JSON | 3 | 0 | 0 | 7,068 |
SVG | 4 | 0 | 0 | 2,690 |
PHP | 12 | 389 | 147 | 1,873 |
Sass | 4 | 6 | 1 | 34 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 23 | 88.46% |
▷ Anonymous functions | 3 | 11.54% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
45 PNG files occupy 1.02MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
qc-support-promo-page/images/feature03.png | 3.86KB | 2.04KB | ▼ 47.24% |
qc-support-promo-page/images/sld-icon-256x256.png | 24.41KB | 11.18KB | ▼ 54.18% |
qc-support-promo-page/images/premium-themes.png | 75.71KB | 20.13KB | ▼ 73.42% |
qc-support-promo-page/images/iList-icon-256x256.png | 12.99KB | 6.05KB | ▼ 53.44% |
qc-support-promo-page/images/logo.png | 5.98KB | 3.38KB | ▼ 43.47% |