Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.06ms] Passed 4 tests
Server-side resources used by Infogram - Add charts, maps and infographics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.15 ▲10.30 |
Dashboard /wp-admin | 3.08 ▲0.02 | 48.35 ▲4.95 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 44.19 ▲1.70 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 87.16 ▼574.08 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 33.08 ▼0.82 |
Infogram settings /wp-admin/options-general.php?page=infogram | 2.99 | 28.06 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 117 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Infogram - Add charts, maps and infographics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.78 ▼0.11 | 9.37 ▲1.04 | 50.24 ▲4.70 |
Dashboard /wp-admin | 2,975 ▲41 | 6.03 ▲0.09 | 129.70 ▼18.14 | 112.33 ▼2.17 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.69 ▲0.00 | 62.54 ▼4.32 | 98.33 ▲4.34 |
Add New Post /wp-admin/post-new.php | 1,618 ▼254 | 21.54 ▲2.35 | 272.06 ▼108.38 | 102.63 ▲0.04 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.01 ▼0.03 | 144.08 ▼0.62 | 120.35 ▲1.20 |
Infogram settings /wp-admin/options-general.php?page=infogram | 1,064 | 2.08 | 53.86 | 70.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/infogram/core/rmccue/requests/bin/create_pear_package.php
- 54× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Transport/fsockopen.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Exception/HTTP/413.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Infogram\\InfogramSession' not found in wp-content/plugins/infogram/core/infogram/infogram/src/Infogram/RequestSigningSession.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Auth' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Auth/Basic.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Exception/HTTP/401.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Hooker' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Hooks.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Exception/HTTP/431.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Transport/cURL.php:15
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\ExtendedPromiseInterface' not found in wp-content/plugins/infogram/core/react/promise/src/LazyPromise.php:5
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/infogram/core/rmccue/requests/library/Requests/Exception/HTTP/417.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is missing in infogram/assets to your readme.txt
infogram/infogram.php Passed 13 tests
Analyzing the main PHP file in "Infogram - Add charts, maps and infographics" version 1.6.1
59 characters long description:
It allows you to insert graphics from the site infogram.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin6,073 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 994 | 3,190 | 4,302 |
Markdown | 4 | 383 | 0 | 972 |
CSS | 1 | 52 | 11 | 376 |
JavaScript | 2 | 15 | 8 | 207 |
JSON | 3 | 0 | 0 | 193 |
YAML | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 10.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 12 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 65 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 60 | 20.76% |
▷ Public methods | 240 | 83.04% |
▷ Protected methods | 36 | 12.46% |
▷ Private methods | 13 | 4.50% |
Functions | 60 | |
▷ Named functions | 25 | 41.67% |
▷ Anonymous functions | 35 | 58.33% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 23 | 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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
button/img/el-h.png | 0.07KB | 0.09KB | 0.00% |
button/img/logow.png | 15.74KB | 1.86KB | ▼ 88.17% |
button/img/fav.png | 2.46KB | 2.63KB | 0.00% |
button/img/logo.png | 4.24KB | 2.14KB | ▼ 49.60% |
button/img/top-back.png | 0.07KB | 0.09KB | 0.00% |