Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/easypromos/easypromos.php+32
Undefined variable: wpdb
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.08ms] Passed 4 tests
Analyzing server-side resources used by Easypromos Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.21 ▼33.99 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.54 ▼38.60 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.11 ▼38.63 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.81 ▼97.10 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.55 ▼31.55 |
Server storage [IO: ▲0.63MB] [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: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_easyp_shortcode |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Easypromos Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲71 | 13.24 ▼1.14 | 1.93 ▲0.00 | 39.87 ▼3.43 |
Dashboard /wp-admin | 2,230 ▲38 | 5.81 ▲0.89 | 107.86 ▼3.98 | 40.43 ▲0.65 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.00 ▼0.02 | 35.52 ▼0.66 | 34.08 ▲0.50 |
Add New Post /wp-admin/post-new.php | 6,373 ▲4,854 | 27.90 ▲4.71 | 899.70 ▲295.43 | 38.34 ▼20.65 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.31 ▲0.13 | 93.37 ▼1.02 | 41.26 ▼3.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the easypromos-frame-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #5, #6, #7 in easypromos/assets to your readme.txt
- Contributors: The plugin contributors field is missing
easypromos/easypromos.php 85% from 13 tests
The entry point to "Easypromos Plugin" version 1.3.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "4.9")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,045 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 29 | 434 |
CSS | 2 | 34 | 7 | 293 |
JavaScript | 3 | 44 | 33 | 269 |
PO File | 1 | 5 | 9 | 37 |
SVG | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
4 PNG files occupy 0.57MB with 0.41MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 146.99KB | 37.05KB | ▼ 74.80% |
assets/screenshot-2.png | 147.94KB | 42.09KB | ▼ 71.55% |
assets/screenshot-3.png | 246.80KB | 67.02KB | ▼ 72.84% |
assets/screenshot-4.png | 40.70KB | 11.91KB | ▼ 70.73% |