Benchmarks
Plugin footprint 65% 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.06MB] [CPU: ▼2.91ms] Passed 4 tests
An overview of server-side resources used by Featured Item Metabox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 46.11 ▲2.27 |
Dashboard /wp-admin | 3.37 ▲0.07 | 55.37 ▲1.72 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.28 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.68 ▼12.76 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 40.34 ▲5.36 |
Featured Items Metabox /wp-admin/options-general.php?page=featured-items-metabox | 3.26 | 48.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Featured Item Metabox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.69 ▼0.32 | 45.88 ▲4.29 |
Dashboard /wp-admin | 2,196 ▲19 | 5.52 ▼0.08 | 85.08 ▼5.84 | 38.04 ▼6.90 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.94 ▼0.01 | 35.54 ▲0.15 | 34.50 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.21 ▼0.04 | 684.89 ▼61.07 | 51.72 ▼14.82 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▲0.04 | 97.57 ▼13.52 | 42.44 ▼1.65 |
Featured Items Metabox /wp-admin/options-general.php?page=featured-items-metabox | 828 | 2.00 | 26.78 | 26.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Featured_Item_Metabox_Plugin::delete_plugin_options() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
Everything seems fine, however this is by no means an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/featured-item-metabox/inc/plugin-options.php:12
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #0, #0, #0 in featured-item-metabox/assets to your readme.txt
- Screenshots: Please add images for these screenshots: #1 (The plugin settings), #2 (Posts overview. Featured status can be changed via quickedit, or by simply clicking on the star icon. Dark stars are featured whereas hollow stars are not.), #3 (The metabox when editing an individual post)
featured-item-metabox/featured-item-metabox.php Passed 13 tests
"Featured Item Metabox" version 1.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
Quickly add a metabox to any post type for marking a post as featured.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin341 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 150 | 233 | 298 |
JavaScript | 2 | 16 | 7 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin