Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.19ms] Passed 4 tests
An overview of server-side resources used by Steady for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 33.74 ▼5.68 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.93 ▼8.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.46 ▲4.52 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 89.65 ▼2.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.51 ▼1.00 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Steady for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.22 ▼1.42 | 1.70 ▼0.09 | 39.13 ▼6.20 |
Dashboard /wp-admin | 2,236 ▲45 | 4.96 ▼0.08 | 96.04 ▼18.77 | 71.58 ▲27.16 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.03 ▼0.08 | 34.53 ▲0.62 | 33.46 ▼0.24 |
Add New Post /wp-admin/post-new.php | 6,449 ▲4,935 | 20.48 ▲2.92 | 1,019.98 ▲367.63 | 53.77 ▼2.38 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.19 ▼0.03 | 92.85 ▼23.19 | 77.98 ▲30.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/steady-wp/admin/partials/steady-wp-admin-display.php:4
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Requires php: Invalid plugin version format
steady-wp/steady-wp.php 92% from 13 tests
Analyzing the main PHP file in "Steady for WordPress" version 1.3.2
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 141 characters long)
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
Good job! No executable or dangerous file extensions detected891 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 178 | 357 | 653 |
JavaScript | 3 | 15 | 9 | 139 |
PO File | 1 | 22 | 29 | 59 |
CSS | 3 | 4 | 4 | 39 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 3 | 5.77% |
▷ Public methods | 41 | 78.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 21.15% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon_success.png | 0.87KB | 0.53KB | ▼ 38.54% |
admin/img/icon_20.png | 1.32KB | 0.66KB | ▼ 49.93% |
admin/img/icon_16.png | 1.08KB | 0.55KB | ▼ 48.87% |
admin/img/paywall-tag.png | 49.75KB | 24.10KB | ▼ 51.55% |
admin/img/icon_fail.png | 0.90KB | 0.56KB | ▼ 37.36% |