Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼13.21ms] Passed 4 tests
This is a short check of server-side resources used by Author Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.75 ▼4.82 |
Dashboard /wp-admin | 3.38 ▲0.03 | 57.98 ▼0.29 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.61 ▼2.36 |
Add New Post /wp-admin/post-new.php | 4.67 ▼1.22 | 44.38 ▼45.35 |
Media Library /wp-admin/upload.php | 3.31 ▲0.07 | 34.92 ▲1.82 |
Author Box /wp-admin/options-general.php?page=author_box | 3.27 | 32.81 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 25 new options
New WordPress options |
---|
display_options |
font_default |
enable_avatar |
author_box_bg |
widget_recent-comments |
link_color |
font_weight |
author_box_width |
font_color |
display_contact_info |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Author Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲45 | 14.35 ▲0.10 | 1.76 ▼0.13 | 53.05 ▲13.61 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.03 | 94.76 ▲9.72 | 42.32 ▲0.70 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 33.34 ▼7.25 | 34.58 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.43 ▲0.17 | 681.99 ▲54.37 | 53.44 ▼9.43 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.20 ▲0.08 | 97.04 ▼4.79 | 45.61 ▲2.52 |
Author Box /wp-admin/options-general.php?page=author_box | 1,597 | 1.68 | 26.25 | 26.30 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 25 options
- can_compress_scripts
- font_family
- font_weight
- font_default
- contact_info_caption
- avatar_image_height
- enable_avatar
- author_box_position
- widget_recent-posts
- author_box_height
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 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/master-mind-author-box/authorboxplugin.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/master-mind-author-box/inc/authorbox-include.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=author_box
- > Network (severe)
wp-content/plugins/authorboxplugin/css/adminstyle.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=author_box
- > Network (severe)
wp-content/plugins/authorboxplugin/jscolor/jscolor.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== master-mind-author-box ===
)
master-mind-author-box/authorboxplugin.php 92% from 13 tests
The principal PHP file in "Author Box" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("master-mind-author-box.php" instead of "authorboxplugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,474 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 820 |
PHP | 3 | 40 | 21 | 447 |
CSS | 1 | 32 | 0 | 207 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 7 | |
▷ Static methods | 6 | 85.71% |
▷ Public methods | 7 | 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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |