Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.74ms] Passed 4 tests
This is a short check of server-side resources used by DC Hide Publish Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.81 ▲2.10 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.32 ▼4.31 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.78 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.47 ▼7.44 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.99 ▲0.26 |
DC Hide Publish Button /wp-admin/options-general.php?page=dc-hide-publish-button | 3.21 | 43.51 |
Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DC Hide Publish Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.31 ▼0.98 | 4.52 ▲2.60 | 43.96 ▼0.85 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.99 | 104.31 ▼15.34 | 39.16 ▼3.80 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 37.95 ▼2.21 | 35.57 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.07 ▼0.18 | 628.11 ▼22.33 | 56.20 ▼22.69 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.04 | 95.36 ▼11.28 | 42.67 ▼3.06 |
DC Hide Publish Button /wp-admin/options-general.php?page=dc-hide-publish-button | 843 | 2.20 | 24.55 | 29.73 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=dc-hide-publish-button
- > Notice in wp-content/plugins/dc-hide-publish-button/class.php+150
Undefined variable: checked
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in dc-hide-publish-button/assets to your readme.txt
dc-hide-publish-button/dc-hide-publish-button.php Passed 13 tests
This is the main PHP file of "DC Hide Publish Button" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Avoid accidentally publish post/page
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
Success! There were no dangerous files found in this plugin200 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 15 | 200 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
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 | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 21.43% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin