Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼1.61ms] Passed 4 tests
Server-side resources used by Venngage Infographics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 44.59 ▲0.11 |
Dashboard /wp-admin | 3.76 ▲0.46 | 50.01 ▼0.78 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 52.02 ▲2.26 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.71 | 91.07 ▼8.03 |
Media Library /wp-admin/upload.php | 3.62 ▲0.40 | 38.67 ▲4.58 |
Server storage [IO: ▲3.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 198 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Venngage Infographics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 14.05 ▼0.33 | 9.26 ▲7.05 | 42.23 ▼2.35 |
Dashboard /wp-admin | 2,207 ▲22 | 5.85 ▲0.85 | 112.20 ▼10.50 | 42.64 ▼5.32 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.03 ▲0.01 | 36.16 ▼2.24 | 32.34 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6,384 ▲4,865 | 19.27 ▼3.99 | 958.32 ▲301.39 | 187.49 ▲132.88 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.23 ▲0.01 | 98.94 ▼1.38 | 43.57 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/venngage/resources/public/shortcode.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/venngage/resources/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Notice
Undefined variable: id in wp-content/plugins/venngage/resources/public/shortcode.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/venngage/resources/lib/cmb2/init.php:119
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/venngage/resources/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/venngage/resources/lib/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/venngage/resources/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/venngage/resources/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/venngage/resources/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Notice
Undefined variable: id in wp-content/plugins/venngage/resources/public/shortcode.php on line 5
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/venngage/resources/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
venngage/venngage.php Passed 13 tests
The principal PHP file in "Venngage Infographics" v. 1.0.0 is loaded by WordPress automatically on each request
100 characters long description:
Create and embed your Venngage infographics, charts and data visualizations into your WordPress site
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
Everything looks great! No dangerous files found in this plugin77,473 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,861 | 11,779 | 20,270 |
PHP | 25 | 1,311 | 2,216 | 4,607 |
CSS | 4 | 964 | 500 | 2,027 |
Sass | 9 | 157 | 24 | 1,079 |
JavaScript | 7 | 223 | 173 | 999 |
Markdown | 4 | 144 | 0 | 417 |
YAML | 2 | 9 | 0 | 148 |
JSON | 3 | 0 | 0 | 118 |
Bourne Shell | 1 | 18 | 7 | 67 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 28.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 318 | |
▷ Static methods | 21 | 6.60% |
▷ Public methods | 308 | 96.86% |
▷ Protected methods | 5 | 1.57% |
▷ Private methods | 5 | 1.57% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 16 | 88.89% |
▷ Class constants | 2 | 11.11% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/postersicon.png | 4.43KB | 2.45KB | ▼ 44.82% |
resources/lib/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
resources/images/infographicsicon.png | 5.82KB | 3.12KB | ▼ 46.39% |
resources/images/reportsicon.png | 3.96KB | 2.05KB | ▼ 48.20% |
resources/lib/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |