Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.60MB] [CPU: ▲22.84ms] 75% from 4 tests
Analyzing server-side resources used by WP Security Safe
The following require your attention
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.60MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.30 ▲5.84 | 63.07 ▲22.40 |
Dashboard /wp-admin | 9.32 ▲5.98 | 80.91 ▲15.50 |
Posts /wp-admin/edit.php | 9.33 ▲5.97 | 82.86 ▲37.72 |
Add New Post /wp-admin/post-new.php | 10.49 ▲4.60 | 109.63 ▲15.77 |
Media Library /wp-admin/upload.php | 9.32 ▲6.10 | 72.49 ▲37.70 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.32 | 61.75 |
Server storage [IO: ▲4.41MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 265 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_sovstack_stats |
wp_sovstack_logs |
New WordPress options |
---|
fs_accounts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
securitysafe_options |
fs_active_plugins |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Security Safe
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲99 | 14.67 ▲0.32 | 1.63 ▼0.11 | 29.04 ▼31.40 |
Dashboard /wp-admin | 2,244 ▲67 | 5.56 ▼0.10 | 99.68 ▲2.83 | 49.53 ▲4.51 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 1.98 ▲0.02 | 41.74 ▲2.82 | 39.57 ▲3.86 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 22.32 ▼0.83 | 716.07 ▲16.46 | 51.84 ▼0.04 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.21 ▲0.02 | 114.20 ▲13.90 | 49.06 ▲2.93 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,104 | 1.67 | 24.86 | 25.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/security-safe/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables detected upon uninstall: 2 tables
- wp_sovstack_logs
- wp_sovstack_stats
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- fs_active_plugins
- theysaidso_admin_options
- fs_accounts
- widget_recent-posts
- securitysafe_options
- fs_debug_mode
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function SovereignStack\\SecuritySafe\\plugin_dir_url() in wp-content/plugins/security-safe/security-safe.php:7
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (File Permissions), #2 (Login Attempts), #3 (Firewall Blocks)
security-safe/security-safe.php 92% from 13 tests
The entry point to "WP Security Safe" version 2.6.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected43,344 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 158 | 10,192 | 19,973 | 38,341 |
PO File | 3 | 1,221 | 1,518 | 4,064 |
Sass | 2 | 218 | 3 | 530 |
JavaScript | 7 | 57 | 71 | 231 |
JSON | 1 | 0 | 0 | 116 |
SVG | 2 | 14 | 0 | 46 |
CSS | 16 | 0 | 0 | 16 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 59.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 90 | |
▷ Abstract classes | 2 | 2.22% |
▷ Concrete classes | 88 | 97.78% |
▷ Final classes | 8 | 9.09% |
Methods | 1,541 | |
▷ Static methods | 258 | 16.74% |
▷ Public methods | 1,041 | 67.55% |
▷ Protected methods | 81 | 5.26% |
▷ Private methods | 419 | 27.19% |
Functions | 105 | |
▷ Named functions | 103 | 98.10% |
▷ Anonymous functions | 2 | 1.90% |
Constants | 198 | |
▷ Global constants | 151 | 76.26% |
▷ Class constants | 47 | 23.74% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.19MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 50.04KB | 53.10KB | 0.00% |
screenshot-3.png | 51.27KB | 55.03KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
screenshot-1.png | 68.86KB | 73.82KB | 0.00% |