Benchmarks
Plugin footprint Passed 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.14MB] [CPU: ▼311.86ms] Passed 4 tests
Analyzing server-side resources used by Barbwire Security
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.22 | 119.33 ▲56.77 |
Dashboard /wp-admin | 3.57 ▲0.16 | 37.96 ▼0.57 |
Posts /wp-admin/edit.php | 3.80 ▲0.16 | 39.98 ▲2.36 |
Add New Post /wp-admin/post-new.php | 7.04 ▲0.07 | 94.13 ▼1,253.04 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 28.28 ▲3.83 |
Barbwire Security /wp-admin/options-general.php?page=barb_secure_settings | 4.52 | 28.99 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Barbwire Security
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,794 ▲72 | 14.70 ▼0.62 | 7.35 ▲0.72 | 2.18 ▼0.87 |
Dashboard /wp-admin | 2,894 ▲44 | 6.15 ▼0.02 | 119.47 ▼11.22 | 176.80 ▲10.19 |
Posts /wp-admin/edit.php | 2,693 ▲9 | 3.36 ▲0.01 | 64.83 ▼1.64 | 145.58 ▼76.63 |
Add New Post /wp-admin/post-new.php | 1,714 ▲24 | 20.80 ▼0.10 | 476.91 ▲5.71 | 205.70 ▲9.40 |
Media Library /wp-admin/upload.php | 1,697 ▲2 | 5.59 ▲0.05 | 166.24 ▲9.46 | 222.02 ▼24.94 |
Barbwire Security /wp-admin/options-general.php?page=barb_secure_settings | 1,729 | 2.87 | 55.42 | 162.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(WP_PLUGIN_DIR/barbwire-security/barbwire-security.php): failed to open stream: No such file or directory in wp-content/plugins/barbwire-security/inc/Version.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/barbwire-security/inc/Version.php' (include_path='.:/usr/share/php') in wp-content/plugins/barbwire-security/admin/template/page-setting.php on line 2
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/barbwire-security/inc/Version.php on line 4
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/barbwire-security/admin/settings.php on line 5
- > PHP Warning
require_once(WP_PLUGIN_DIR/barbwire-security/inc/Version.php): failed to open stream: No such file or directory in wp-content/plugins/barbwire-security/admin/template/page-setting.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/barbwire-security/barbwire-security.php' (include_path='.:/usr/share/php') in wp-content/plugins/barbwire-security/inc/Version.php on line 4
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/barbwire-security/admin/template/page-setting.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/barbwire-security/inc/LoginParameter.php' (include_path='.:/usr/share/php') in wp-content/plugins/barbwire-security/admin/settings.php on line 5
- > PHP Warning
require_once(WP_PLUGIN_DIR/barbwire-security/barbwire-security.php): failed to open stream: No such file or directory in wp-content/plugins/barbwire-security/inc/Version.php on line 4
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/barbwire-security/inc/Version.php on line 4
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please a description for screenshot #4 in barbwire-security/assets to your readme.txt
barbwire-security/barbwire-security.php Passed 13 tests
The primary PHP file in "Barbwire Security" version 2.1.0 is used by WordPress to initiate all plugin functionality
44 characters long description:
This plugin enhances the WordPress security.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,337 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 267 | 392 | 977 |
JavaScript | 1 | 45 | 25 | 172 |
CSS | 1 | 21 | 0 | 127 |
SVG | 1 | 0 | 0 | 52 |
INI | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 45 | 97.83% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.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 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/question_icon.png | 1.10KB | 0.24KB | ▼ 78.02% |