Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.89ms] Passed 4 tests
An overview of server-side resources used by Injection Guard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 42.62 ▲4.44 |
Dashboard /wp-admin | 3.38 ▲0.07 | 43.27 ▼3.41 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.92 ▼3.68 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.34 ▼16.35 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.05 ▼0.11 |
IG Settings /wp-admin/options-general.php?page=ig_settings | 3.33 | 32.03 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
ig_requests_log |
widget_recent-posts |
Browser metrics Passed 4 tests
Injection Guard: 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,804 ▲58 | 13.55 ▼0.83 | 1.90 ▲0.14 | 47.14 ▲8.49 |
Dashboard /wp-admin | 2,210 ▲28 | 4.86 ▼0.99 | 94.61 ▼6.63 | 38.26 ▼6.02 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 35.96 ▼1.63 | 32.59 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.09 ▲5.53 | 652.88 ▲14.66 | 57.70 ▲5.47 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▼0.06 | 97.13 ▼0.28 | 42.04 ▼2.84 |
IG Settings /wp-admin/options-general.php?page=ig_settings | 1,248 | 2.07 | 30.32 | 52.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- ig_requests_log
- db_upgraded
- can_compress_scripts
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function count_users() in wp-content/plugins/injection-guard/templates/dashboard.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: tool, blacklist, security, anti-hacking
injection-guard/index.php 85% from 13 tests
The principal PHP file in "Injection Guard" v. 1.2.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 182 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("injection-guard.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin10,991 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
PHP | 5 | 387 | 75 | 697 |
JavaScript | 3 | 132 | 109 | 496 |
CSS | 5 | 30 | 19 | 191 |
PO File | 3 | 57 | 57 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 13 | |
▷ Named functions | 13 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
img/kindness.png | 3.80KB | 2.98KB | ▼ 21.60% |
img/glyphicons.png | 108.59KB | 52.69KB | ▼ 51.48% |