Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.01ms] Passed 4 tests
Analyzing server-side resources used by Show Featured Image Size in Admin TopBar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.67 ▼1.39 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.28 ▲0.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.60 ▼4.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.86 ▼18.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.24 ▲0.66 |
Featured Image Size /wp-admin/options-general.php?page=show-featured-image-size-in-admin-topbar/sfisiat.php | 3.21 | 35.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Show Featured Image Size in Admin TopBar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.18 ▼0.97 | 1.82 ▼0.37 | 32.58 ▼10.54 |
Dashboard /wp-admin | 2,223 ▲32 | 5.85 ▲0.97 | 108.38 ▲2.82 | 41.28 ▲1.05 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.17 ▲0.12 | 40.15 ▼1.05 | 38.54 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.55 ▼4.58 | 616.86 ▼58.30 | 62.83 ▼9.86 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.21 ▼0.02 | 96.27 ▼16.93 | 46.20 ▼0.14 |
Featured Image Size /wp-admin/options-general.php?page=show-featured-image-size-in-admin-topbar/sfisiat.php | 867 | 2.05 | 23.09 | 28.62 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-featured-image-size-in-admin-topbar/sfisiat.php:27
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: topbar, admin, administration, featured image size
show-featured-image-size-in-admin-topbar/sfisiat.php 92% from 13 tests
The main PHP script in "Show Featured Image Size in Admin TopBar" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("show-featured-image-size-in-admin-topbar.php" instead of "sfisiat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected146 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 20 | 83 |
PO File | 1 | 14 | 14 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
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 | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin