Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼10.54ms] Passed 4 tests
A check of server-side resources used by About Us Team
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.28 ▼13.80 |
Dashboard /wp-admin | 3.38 ▲0.07 | 49.02 ▼3.34 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.00 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.06 ▼22.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.91 ▼2.17 |
Team options /wp-admin/options-general.php?page=uebns | 3.27 | 33.61 |
Add New Team /wp-admin/post-new.php?post_type=uebns | 3.35 | 47.86 |
All Teams /wp-admin/edit.php?post_type=uebns | 3.37 | 39.35 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
uebns_setting_main_color_hover |
uebns_plugin_version |
db_upgraded |
widget_recent-comments |
uebns_setting_main_color |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for About Us Team
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲120 | 13.50 ▼0.80 | 1.68 ▼0.07 | 36.46 ▼15.17 |
Dashboard /wp-admin | 2,252 ▲70 | 5.13 ▼0.69 | 104.54 ▼27.21 | 41.97 ▼0.19 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.36 ▲0.34 | 35.46 ▲0.22 | 34.26 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,557 ▲34 | 17.86 ▼5.61 | 723.05 ▲37.81 | 36.66 ▼31.21 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.32 ▲0.16 | 93.56 ▼6.63 | 40.97 ▼1.37 |
Team options /wp-admin/options-general.php?page=uebns | 1,540 | 2.35 | 47.47 | 37.24 |
Add New Team /wp-admin/post-new.php?post_type=uebns | 2,364 | 3.65 | 75.27 | 86.86 |
All Teams /wp-admin/edit.php?post_type=uebns | 1,233 | 3.51 | 58.19 | 27.88 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-save-metaboxes.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-teams-content.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-settings.php:111
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-shortcode-column.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-sidebar-settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-sidebar-shortcode.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-admin.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-us-shortcode/inc/uebns-shortcode.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-settings-teams.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-user.php:23
- > 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
7 plugin tags: abaoutus, post, team, site, member...
about-us-shortcode/about-us-shortcode.php 92% from 13 tests
The main PHP file in "About Us Team" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 detected1,855 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 469 | 1,117 |
CSS | 2 | 34 | 17 | 325 |
JavaScript | 4 | 59 | 51 | 235 |
PO File | 1 | 80 | 106 | 178 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot-4.png | 76.64KB | 37.40KB | ▼ 51.20% |
assets/img/screenshot-3.png | 56.63KB | 20.93KB | ▼ 63.05% |
assets/img/screenshot-1.png | 253.61KB | 78.62KB | ▼ 69.00% |
assets/img/icon-128x128.png | 6.06KB | 2.96KB | ▼ 51.17% |
assets/img/settings_theme_layout_2.png | 2.38KB | 1.55KB | ▼ 34.96% |