Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.61ms] Passed 4 tests
Analyzing server-side resources used by FibroJedi's Sticky Preview and Publish Buttons
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.36 ▼1.94 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.70 ▼1.89 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.63 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.32 ▼1.25 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.39 ▲2.72 |
Sticky Preview Buttons /wp-admin/options-general.php?page=fibrojedi-sppb | 3.26 | 31.62 |
Server storage [IO: ▲0.24MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 19 new options
New WordPress options |
---|
fibrojedi_sppb_disallowed_post_types |
fj_sppb_previous_version |
fibrojedi_sppb_slider |
fibrojedi_sppb_mode |
theysaidso_admin_options |
fibrojedi_sppb_border_colour |
fj_sppb_welcome_given |
can_compress_scripts |
widget_theysaidso_widget |
fibrojedi_sppb_beta |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for FibroJedi's Sticky Preview and Publish Buttons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.14 ▼0.15 | 1.70 ▲0.04 | 44.03 ▼1.29 |
Dashboard /wp-admin | 2,207 ▲30 | 5.64 ▲0.02 | 86.65 ▼12.89 | 38.24 ▼5.75 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.01 ▲0.06 | 35.66 ▼0.53 | 33.73 ▲1.87 |
Add New Post /wp-admin/post-new.php | 6,248 ▲4,722 | 26.03 ▲2.53 | 855.90 ▲223.36 | 53.13 ▼8.01 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.15 ▼0.05 | 92.67 ▼7.34 | 39.59 ▼2.59 |
Sticky Preview Buttons /wp-admin/options-general.php?page=fibrojedi-sppb | 1,410 | 2.02 | 23.64 | 50.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- fibrojedi_update_method
- fj_sppb_previous_version
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- fibrojedi_sppb_mode
- can_compress_scripts
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)
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fibrojedi-sticky-preview-publish-buttons/fibrojedi-sticky-preview-publish-buttons.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: admin-buttons, post-editing, publish-button, back-office, ui...
fibrojedi-sticky-preview-publish-buttons/fibrojedi-sticky-preview-publish-buttons.php 92% from 13 tests
The entry point to "FibroJedi's Sticky Preview and Publish Buttons" version 1.2.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin810 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 73 | 92 | 712 |
CSS | 4 | 13 | 11 | 98 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin