Benchmarks
Plugin footprint 83% from 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: ▼4.93ms] Passed 4 tests
Analyzing server-side resources used by Military Discount
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.42 ▲0.03 |
Dashboard /wp-admin | 3.32 ▲0.01 | 54.36 ▼0.40 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.19 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.18 ▼16.56 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.63 ▼2.09 |
menu title /wp-admin/admin.php?page=verifypass | 3.28 | 30.35 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Military Discount
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.35 ▼0.03 | 1.74 ▼0.70 | 44.05 ▲1.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.02 | 94.77 ▼11.47 | 42.37 ▼0.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 34.65 ▼4.91 | 34.05 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 22.13 ▼1.12 | 783.41 ▲105.29 | 53.74 ▲3.14 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.00 | 98.90 ▼25.09 | 41.64 ▼6.55 |
menu title /wp-admin/admin.php?page=verifypass | 1,061 | 2.05 | 24.39 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=verifypass
- > Notice in wp-content/plugins/id-services/views/admin.php+131
Undefined index: tab
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: Screenshot #5 (Seller Account: Simple suite of reporting and customization tools. Manage your discounts, export your verified customers and more.) image missing
- Plugin Name: Please specify the plugin name on the first line (
=== Military Discount ===
)
id-services/verifypass.php 85% from 13 tests
The main file in "Military Discount" v. 4.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("id-services.php" instead of "verifypass.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin453 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 56 | 47 | 453 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 30.77% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.45MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banners/soldier2.png | 40.48KB | 42.90KB | 0.00% |
banners/soldier3.png | 27.96KB | 29.62KB | 0.00% |
banners/fire1.png | 27.12KB | 28.54KB | 0.00% |
banners/girl2.png | 27.62KB | 29.49KB | 0.00% |
logo.png | 31.71KB | 4.07KB | ▼ 87.18% |