Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.62ms] Passed 4 tests
An overview of server-side resources used by Remove Admin Bar from Previews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.49 ▲1.97 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.38 ▼17.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.42 ▼4.85 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.35 ▼15.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.22 ▼1.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
abp_preview_settings |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Remove Admin Bar from Previews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.10 | 1.88 ▲0.01 | 37.84 ▼5.90 |
Dashboard /wp-admin | 2,192 ▲17 | 5.59 ▲0.03 | 93.83 ▼5.73 | 41.84 ▲1.85 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.04 | 40.84 ▼1.42 | 35.91 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.23 ▼0.75 | 691.10 ▼21.69 | 56.19 ▲2.95 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.07 | 96.99 ▼29.62 | 40.71 ▼12.09 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-admin-bar-from-previews/remove-admin-bar-from-previews.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/remove-admin-bar-from-previews/inc/abp-notice-bar-template.php:11
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: editor, preview, admin bar, posts
remove-admin-bar-from-previews/remove-admin-bar-from-previews.php Passed 13 tests
The main PHP script in "Remove Admin Bar from Previews" version 0.2.0 is automatically included on every request by WordPress
41 characters long description:
Removes the Admin Bar from Post Previews.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected99 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 16 | 46 | 80 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin