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.99ms] Passed 4 tests
This is a short check of server-side resources used by Better Author Metabox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.33 ▼0.84 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.65 ▼0.74 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.41 ▼3.15 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 89.18 ▼11.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.72 ▲0.61 |
Better Author Metabox /wp-admin/options-general.php?page=ba-metabox-config | 3.25 | 31.61 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Better Author Metabox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.07 | 1.73 ▼0.00 | 44.29 ▲7.75 |
Dashboard /wp-admin | 2,199 ▲22 | 5.50 ▼0.07 | 81.98 ▼5.38 | 37.76 ▼6.59 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 39.30 ▼0.94 | 37.18 ▲2.84 |
Add New Post /wp-admin/post-new.php | 1,538 ▲9 | 18.26 ▼4.80 | 620.75 ▼50.59 | 75.54 ▲25.57 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.16 ▼0.02 | 100.06 ▲3.80 | 41.40 ▲0.05 |
Better Author Metabox /wp-admin/options-general.php?page=ba-metabox-config | 859 | 2.02 | 21.76 | 28.44 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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
Even though everything seems fine, this is not 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/better-author-metabox/options-page.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The metabox appears beneath the main block editor window in WordPress 5.0 and up, along with other metaboxes using the longstanding metabox APIs.) image required
- Plugin Name: You should set the name of your plugin on the first line (
=== better-author-metabox ===
)
better-author-metabox/better-author-metabox.php Passed 13 tests
The principal PHP file in "Better Author Metabox" v. 1.0.4 is loaded by WordPress automatically on each request
82 characters long description:
Allows the Author metabox to be overridden with one that includes different users.
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
Everything looks great! No dangerous files found in this plugin243 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 71 | 243 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 1 | 9.09% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 57.86KB | 19.17KB | ▼ 66.88% |
screenshot-2.png | 21.03KB | 5.65KB | ▼ 73.14% |