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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.05ms] Passed 4 tests
Analyzing server-side resources used by Unless
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.51 ▲2.56 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.32 ▼0.01 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.31 ▼3.89 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.66 ▼14.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.00 ▲4.20 |
Unless /wp-admin/tools.php?page=unless | 3.25 | 32.69 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
unless_data |
Browser metrics Passed 4 tests
Unless: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.78 ▲0.43 | 1.77 ▲0.06 | 43.65 ▲5.08 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▲0.02 | 93.15 ▼8.33 | 41.78 ▼5.39 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.96 ▼0.06 | 40.04 ▲6.07 | 33.54 ▲0.27 |
Add New Post /wp-admin/post-new.php | 1,543 ▲5 | 22.89 ▲4.46 | 656.12 ▼2.28 | 76.73 ▲13.92 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.25 ▲0.07 | 111.64 ▲2.02 | 44.26 ▼0.38 |
Unless /wp-admin/tools.php?page=unless | 1,233 | 1.99 | 30.37 | 125.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/instant/unless.php
- > /wp-content/plugins/instant/index.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
instant/unless.php 77% from 13 tests
The primary PHP file in "Unless" version 3.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("instant.php" instead of "unless.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 158 characters long)
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
Good job! No executable or dangerous file extensions detected13,076 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 925 | 5,540 | 5,437 |
SVG | 6 | 0 | 3 | 4,620 |
JavaScript | 3 | 110 | 1,879 | 2,681 |
PHP | 5 | 33 | 70 | 338 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/unless.png | 37.40KB | 12.62KB | ▼ 66.25% |