Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼293.74ms] Passed 4 tests
Server-side resources used by WPi Display Plugin Data - Show wordpress.org plugins data in your website
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 61.11 ▲3.61 |
Dashboard /wp-admin | 3.43 ▲0.02 | 37.12 ▼3.46 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 54.02 ▲9.66 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 96.85 ▼1,172.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 29.78 ▼2.27 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPi Display Plugin Data - Show wordpress.org plugins data in your website: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.94 ▲0.38 | 5.75 ▼0.64 | 2.33 ▼0.15 |
Dashboard /wp-admin | 2,895 ▲34 | 6.15 ▼0.04 | 120.48 ▼19.00 | 156.15 ▼13.96 |
Posts /wp-admin/edit.php | 2,694 ▲6 | 3.24 ▼0.12 | 62.33 ▼2.64 | 135.77 ▼15.59 |
Add New Post /wp-admin/post-new.php | 1,761 ▲50 | 19.10 ▼1.52 | 404.60 ▼29.63 | 164.60 ▲4.90 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▲0.00 | 138.54 ▼18.70 | 185.70 ▼8.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wpi-display-plugin-data/wpi-display-plugin-data.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: show plugins data, promote, api, wordpress plugins api, display plugins data...
wpi-display-plugin-data/wpi-display-plugin-data.php 85% from 13 tests
"WPi Display Plugin Data - Show wordpress.org plugins data in your website" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/locale/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin56 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 18 | 56 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
stars.png | 1.97KB | 1.07KB | ▼ 45.82% |
default.png | 2.81KB | 1.68KB | ▼ 40.33% |
default2.png | 9.27KB | 7.87KB | ▼ 15.08% |