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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.24MB] [CPU: ▼6.15ms] Passed 4 tests
This is a short check of server-side resources used by Improved Save Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 39.28 ▼0.20 |
Dashboard /wp-admin | 3.58 ▲0.24 | 43.86 ▼13.43 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 46.78 ▲1.30 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 91.45 ▼12.26 |
Media Library /wp-admin/upload.php | 3.44 ▲0.22 | 38.34 ▲6.72 |
Improved Save Button /wp-admin/options-general.php?page=save-and-then | 3.41 | 32.68 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Improved Save Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.33 | 1.71 ▼0.62 | 40.86 ▼1.60 |
Dashboard /wp-admin | 2,207 ▲19 | 4.84 ▼0.07 | 98.90 ▼5.23 | 41.60 ▼3.50 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 39.31 ▲1.39 | 34.56 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.31 ▲5.05 | 617.51 ▲4.27 | 65.31 ▼7.45 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▲0.01 | 92.09 ▼25.42 | 42.51 ▼11.74 |
Improved Save Button /wp-admin/options-general.php?page=save-and-then | 966 | 2.38 | 27.15 | 41.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-previous.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/improved-save-button/improved-save-button.php:49
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-new.php:28
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-return.php:28
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-duplicate.php:29
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-view-popup.php:29
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-view.php:28
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-next.php:30
- > PHP Fatal error
Uncaught Error: Class 'LB_Save_And_Then_Action' not found in wp-content/plugins/improved-save-button/actions/class-lb-save-and-then-action-list.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
improved-save-button/improved-save-button.php 77% from 13 tests
This is the main PHP file of "Improved Save Button" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/")
- Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)
- Domain Path: Prefix the domain path with a forward slash character ("//")
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
No dangerous file extensions were detected1,584 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 353 | 1,212 | 1,064 |
JavaScript | 6 | 116 | 373 | 363 |
Sass | 1 | 25 | 6 | 155 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 49 | 44.95% |
▷ Public methods | 105 | 96.33% |
▷ Protected methods | 4 | 3.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected