Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.06ms] Passed 4 tests
A check of server-side resources used by Author Details
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.29 ▲0.16 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.65 ▼10.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.17 ▲0.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 89.72 ▼2.95 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.03 ▲3.05 |
Edit Custom Author /wp-admin/admin.php?page=ad_edit_author_details_page | 3.21 | 32.02 |
Add Custom Author /wp-admin/admin.php?page=ad_add_new_author_details_page | 3.27 | 35.03 |
Author Details /wp-admin/users.php?page=ad_display_all_authors_details_page | 3.21 | 32.17 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_author_details_db |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
ad_global_display_on_single_post |
wp_author_details_db_db_version |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Author Details
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.16 ▼1.45 | 1.80 ▲0.00 | 47.09 ▼3.32 |
Dashboard /wp-admin | 2,210 ▲19 | 5.91 ▲1.01 | 97.77 ▼16.59 | 40.09 ▼7.81 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.02 | 39.74 ▲2.76 | 35.59 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.36 ▲0.83 | 591.30 ▼87.65 | 69.27 ▲14.99 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.03 | 96.14 ▼8.41 | 40.24 ▼4.36 |
Edit Custom Author /wp-admin/admin.php?page=ad_edit_author_details_page | 875 | 2.18 | 22.39 | 25.38 |
Add Custom Author /wp-admin/admin.php?page=ad_add_new_author_details_page | 1,716 | 6.62 | 125.86 | 56.77 |
Author Details /wp-admin/users.php?page=ad_display_all_authors_details_page | 869 | 2.02 | 23.04 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_author_details_db
- This plugin did not uninstall successfully, leaving 8 options in the database
- ad_global_display_on_single_post
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- wp_author_details_db_db_version
- widget_theysaidso_widget
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/author-details/author-details.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/author-details/author-details.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-details/admin/extra-user-profile-fields.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/author-details/database/database.php on line 42
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/author-details/database/database.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-details/admin/extra-user-profile-fields.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: profiles, about author, author details, edc, author bio...
author-details/author-details.php Passed 13 tests
"Author Details" version 1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
Display the author details at the end of the post.
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
No dangerous file extensions were detected1,296 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 124 | 90 | 1,221 |
CSS | 1 | 11 | 0 | 75 |
PHP code Passed 2 tests
A short review of 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.15 |
Average class complexity | 4.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 60 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 60 | 100.00% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/author-overlay-background.png | 4.22KB | 1.14KB | ▼ 72.89% |
images/social_media/facebook.png | 4.11KB | 1.51KB | ▼ 63.32% |
images/social_media/skype.png | 4.50KB | 1.62KB | ▼ 63.87% |
images/social_media/flickr.png | 3.71KB | 1.39KB | ▼ 62.40% |
images/author-top-background.png | 0.11KB | 0.08KB | ▼ 24.77% |