Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼3.88ms] 75% from 4 tests
A check of server-side resources used by WP Plugin Info Card
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 963.58ms on /wp-admin/options-general.php?page=wp-plugin-info-card)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.14 ▲0.67 | 47.58 ▲8.20 |
Dashboard /wp-admin | 3.98 ▲0.68 | 52.13 ▲3.88 |
Posts /wp-admin/edit.php | 4.02 ▲0.67 | 51.91 ▲5.54 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 58.81 ▼30.99 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 37.96 ▲6.07 |
WP Plugin Info Card /wp-admin/options-general.php?page=wp-plugin-info-card | 3.96 | 963.58 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Plugin Info Card
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲23 | 13.24 ▼1.31 | 2.80 ▲1.03 | 44.87 ▲9.62 |
Dashboard /wp-admin | 2,218 ▲41 | 5.82 ▲0.24 | 93.61 ▲3.20 | 41.75 ▲0.56 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.08 | 40.04 ▲7.03 | 35.85 ▼0.65 |
Add New Post /wp-admin/post-new.php | 6,216 ▲4,682 | 21.86 ▲3.83 | 849.92 ▲219.86 | 78.09 ▲3.95 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.16 ▼0.02 | 97.58 ▲3.31 | 41.31 ▼2.48 |
WP Plugin Info Card /wp-admin/options-general.php?page=wp-plugin-info-card | 1,568 | 2.07 | 34.00 | 61.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-plugin-info-card/wp-plugin-info-card.php
- > /wp-content/plugins/wp-plugin-info-card/functions.php
- 29× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin-wordpress.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-theme-wordpress.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_trim_words() in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin-flex.php:42
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin-large.php on line 45
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin.php:45
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-theme.php on line 23
- > PHP Notice
Undefined variable: wppic_data in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin-flex.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-plugin-large.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-theme-large.php:23
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/wp-plugin-info-card/templates/wppic-template-theme-flex.php on line 25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
7 plugin tags: plugin, gutenberg, blocks, card, block...
wp-plugin-info-card/wp-plugin-info-card.php 92% from 13 tests
The entry point to "WP Plugin Info Card" version 4.0.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected9,451 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,227 | 692 | 4,155 |
PHP | 30 | 611 | 1,092 | 3,233 |
PO File | 4 | 403 | 991 | 938 |
CSS | 5 | 133 | 19 | 747 |
JSON | 4 | 0 | 0 | 367 |
SVG | 2 | 0 | 1 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 47 | 37.90% |
▷ Public methods | 119 | 95.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.03% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/default-banner.png | 4.22KB | 0.18KB | ▼ 95.65% |
assets/img/wppic.png | 3.29KB | 0.63KB | ▼ 80.74% |
assets/img/wp-pic-sprite.png | 27.94KB | 6.75KB | ▼ 75.83% |