Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.69MB] [CPU: ▲44.70ms] 75% from 4 tests
This is a short check of server-side resources used by WP Post Author - Enhance Your Posts with the Author Bio, Co-Authors, Guest Authors, and Post Rating System, including User Registration Form Builder
Please fix the following
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.69MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.30 ▲5.83 | 93.77 ▲53.48 |
Dashboard /wp-admin | 9.32 ▲6.01 | 100.37 ▲42.05 |
Posts /wp-admin/edit.php | 9.32 ▲5.96 | 108.67 ▲60.76 |
Add New Post /wp-admin/post-new.php | 10.85 ▲4.96 | 125.54 ▲32.48 |
Media Library /wp-admin/upload.php | 9.32 ▲6.09 | 82.68 ▲50.80 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.32 | 74.10 |
Server storage [IO: ▲10.17MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 318 new files
Database: 3 new tables, 15 new options
New tables |
---|
wp_wpa_subscriptions |
wp_wpa_guest_authors |
wp_wpa_form_builder |
New WordPress options |
---|
awpa_setting_options |
awpa_upgrade_notice_start_time |
theysaidso_admin_options |
widget_wp__post_author_custom |
widget_wp__post_author_specific |
db_upgraded |
widget_recent-comments |
fs_accounts |
widget_wp__post_author |
awpa_seed_insert |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Post Author - Enhance Your Posts with the Author Bio, Co-Authors, Guest Authors, and Post Rating System, including User Registration Form Builder
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,164 ▲402 | 24.43 ▲10.19 | 41.78 ▲40.06 | 29.80 ▼15.62 |
Dashboard /wp-admin | 2,350 ▲179 | 11.80 ▲6.19 | 272.43 ▲172.55 | 46.05 ▲0.78 |
Posts /wp-admin/edit.php | 2,259 ▲159 | 10.65 ▲8.70 | 93.62 ▲53.37 | 38.02 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,684 ▲158 | 24.89 ▲1.61 | 482.30 ▼188.56 | 37.59 ▼12.40 |
Media Library /wp-admin/upload.php | 1,628 ▲228 | 12.46 ▲8.29 | 139.51 ▲41.84 | 43.52 ▲1.04 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,190 | 10.28 | 86.92 | 28.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-post-author/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure failed, leaving 3 tables in the database
- wp_wpa_guest_authors
- wp_wpa_form_builder
- wp_wpa_subscriptions
- This plugin did not uninstall successfully, leaving 15 options in the database
- db_upgraded
- fs_active_plugins
- widget_recent-comments
- widget_wp__post_author_specific
- can_compress_scripts
- awpa_upgrade_notice_start_time
- fs_debug_mode
- widget_theysaidso_widget
- awpa_setting_options
- widget_recent-posts
- ...
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-post-author/includes/multi-authors/wpa-multi-authors.php
- > /wp-content/plugins/wp-post-author/includes/admin/awpa-form-menu.php
- > /wp-content/plugins/wp-post-author/aft-wp-post-author.php
- > /wp-content/plugins/wp-post-author/includes/rating/awpa-rating.php
- > /wp-content/plugins/wp-post-author/includes/init.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AWPA_Widget_Base' not found in wp-content/plugins/wp-post-author/includes/awpa-widget-specific.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-post-author/includes/awpa-widget-base.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-author/includes/themes/multi-authors-list.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-author/includes/database/create-db.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-author/includes/admin/awpa-form-meta.php:32
- > PHP Fatal error
Uncaught Error: Call to a member function insert() on null in wp-content/plugins/wp-post-author/includes/database/seeder-db.php:4
- > PHP Fatal error
Uncaught Error: Class 'AWPA_Widget_Base' not found in wp-content/plugins/wp-post-author/includes/awpa-widget.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-post-author/includes/database/seeder-db.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-post-author/includes/top-rated-post.php:84
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-author/includes/awpa-user-login.php:50
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-post-author/aft-wp-post-author.php 92% from 13 tests
This is the main PHP file of "WP Post Author - Enhance Your Posts with the Author Bio, Co-Authors, Guest Authors, and Post Rating System, including User Registration Form Builder" version 3.6.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-post-author.php" instead of "aft-wp-post-author.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin56,453 lines of code in 216 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 150 | 8,845 | 17,681 | 37,678 |
CSS | 38 | 6,648 | 437 | 16,452 |
JavaScript | 22 | 145 | 563 | 1,569 |
JSON | 2 | 0 | 0 | 503 |
Markdown | 1 | 68 | 0 | 214 |
SVG | 2 | 0 | 0 | 21 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 72.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 2 | 2.94% |
▷ Concrete classes | 66 | 97.06% |
▷ Final classes | 0 | 0.00% |
Methods | 1,407 | |
▷ Static methods | 199 | 14.14% |
▷ Public methods | 1,013 | 72.00% |
▷ Protected methods | 17 | 1.21% |
▷ Private methods | 377 | 26.79% |
Functions | 160 | |
▷ Named functions | 157 | 98.12% |
▷ Anonymous functions | 3 | 1.88% |
Constants | 152 | |
▷ Global constants | 103 | 67.76% |
▷ Class constants | 49 | 32.24% |
▷ Public constants | 49 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wp-post-author.png | 22.52KB | 9.35KB | ▼ 58.47% |
assets/dist/images/awpa-header-layout-3.png | 0.62KB | 0.21KB | ▼ 66.25% |
freemius/assets/img/wp-post-author-pro.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/dist/images/wp-author_layout-2.png | 0.85KB | 0.33KB | ▼ 61.28% |
assets/dist/images/awpa-header-layout-7.png | 0.82KB | 0.47KB | ▼ 42.36% |