Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.63ms] Passed 4 tests
Server-side resources used by Author Box Plus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.35 ▲5.83 |
Dashboard /wp-admin | 3.42 ▲0.11 | 48.42 ▼7.35 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.93 ▼5.77 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.26 ▲0.77 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 44.90 ▲11.27 |
Authors /wp-admin/users.php?page=abp | 3.39 | 38.71 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Author Box Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.73 ▲0.46 | 1.91 ▲0.28 | 43.75 ▼2.67 |
Dashboard /wp-admin | 2,199 ▲22 | 5.58 ▲0.00 | 88.30 ▼11.25 | 38.37 ▼3.98 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.02 | 34.64 ▼3.88 | 33.89 ▼0.77 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.24 ▼0.28 | 695.62 ▲13.49 | 54.29 ▼6.76 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.24 ▲0.03 | 97.49 ▼5.39 | 44.62 ▼0.02 |
Authors /wp-admin/users.php?page=abp | 1,000 | 2.00 | 23.59 | 30.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function abp_get_avatar() in wp-content/plugins/author-box-plus/templates/author-box.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/author-box-plus/templates/author-page.php:11
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/author-box-plus/templates/author-page-recent-posts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function abp_get_author_name() in wp-content/plugins/author-box-plus/templates/author-page-author-box.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Administrator can fully control author options), #2 (View and edit author profiles), #3 (Add social media links to better interact with your readers)
author-box-plus/author-box-plus.php 92% from 13 tests
Analyzing the main PHP file in "Author Box Plus" version 1.0.3
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,163 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 187 | 468 | 913 |
CSS | 1 | 33 | 3 | 250 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 41 | |
▷ Static methods | 19 | 46.34% |
▷ Public methods | 40 | 97.56% |
▷ Protected methods | 1 | 2.44% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/social-icons.png | 2.34KB | 1.56KB | ▼ 33.47% |