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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼139.34ms] Passed 4 tests
An overview of server-side resources used by Shopp Lockdown
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 49.97 ▲27.63 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.61 ▼0.87 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 49.94 ▲5.07 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 94.08 ▼565.92 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 37.77 ▲4.37 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
shopp_lockout_options |
Browser metrics Passed 4 tests
A check of browser resources used by Shopp Lockdown
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 15.77 ▲0.16 | 9.87 ▲1.64 | 51.31 ▼3.20 |
Dashboard /wp-admin | 2,985 ▲54 | 5.88 ▼0.04 | 142.84 ▼8.02 | 109.28 ▼9.70 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.69 ▼0.00 | 69.80 ▼1.91 | 95.38 ▲9.81 |
Add New Post /wp-admin/post-new.php | 1,691 ▲8 | 18.74 ▲0.39 | 384.38 ▼22.92 | 117.51 ▲7.14 |
Media Library /wp-admin/upload.php | 1,819 ▲12 | 5.02 ▼0.03 | 165.79 ▲10.37 | 120.37 ▼5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- shopp_lockout_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from) image required
- Plugin Name: Please specify the plugin name on the first line (
=== shopp-lockdown ===
)
shopp-lockdown/shopp-lockdown.php Passed 13 tests
The main PHP script in "Shopp Lockdown" version 1.0.0 is automatically included on every request by WordPress
106 characters long description:
Shopp Lockdown will watch failed credit card attempts and lock out repetitive failed transaction customer.
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
Success! There were no dangerous files found in this plugin154 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 23 | 154 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
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 | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.55 |
▷ 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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/toolbox.png | 0.41KB | 0.44KB | 0.00% |