Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.84MB] [CPU: ▲4.32ms] Passed 4 tests
This is a short check of server-side resources used by Co-Authors Plus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.31 ▲0.85 | 41.82 ▲0.45 |
Dashboard /wp-admin | 4.14 ▲0.84 | 50.36 ▲1.58 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 52.34 ▲9.51 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.86 | 88.17 ▲5.73 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 42.94 ▲9.84 |
Guest Authors /wp-admin/users.php?page=view-guest-authors | 4.13 | 36.79 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Co-Authors Plus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▲0.03 | 1.64 ▼0.01 | 41.98 ▼1.46 |
Dashboard /wp-admin | 2,196 ▲25 | 5.52 ▼0.11 | 82.48 ▼17.97 | 36.50 ▼5.90 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.21 ▲0.20 | 39.10 ▲2.96 | 36.76 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,725 ▲197 | 22.21 ▼1.26 | 667.54 ▲50.14 | 36.82 ▼9.09 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.17 ▼0.02 | 95.77 ▼5.84 | 43.39 ▼1.30 |
Guest Authors /wp-admin/users.php?page=view-guest-authors | 1,022 | 1.83 | 24.66 | 29.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- 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
Good news, no errors were detected
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
Please fix the following
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/screen.php): failed to open stream: No such file or directory in wp-content/plugins/co-authors-plus/php/class-coauthors-wp-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_coauthors() in wp-content/plugins/co-authors-plus/php/integrations/amp/meta-author.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/co-authors-plus/deprecated.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI' not found in wp-content/plugins/co-authors-plus/php/class-wp-cli.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/co-authors-plus/php/integrations/amp.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/co-authors-plus/deprecated.php:7
- > PHP Fatal error
Uncaught Error: Class 'Yoast\\WP\\SEO\\Generators\\Schema\\Author' not found in wp-content/plugins/co-authors-plus/php/integrations/yoast/class-coauthor.php:14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/co-authors-plus/php/class-coauthors-wp-list-table.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function CoAuthors\\Integrations\\add_action() in wp-content/plugins/co-authors-plus/php/integrations/yoast.php:32
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/co-authors-plus/php/class-coauthors-wp-list-table.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: publishing, authors, multi-author, users, co-authors...
co-authors-plus/co-authors-plus.php Passed 13 tests
The main PHP file in "Co-Authors Plus" ver. 3.5.15 adds more information about the plugin and also serves as the entry point for this plugin
136 characters long description:
Allows multiple authors to be assigned to a post. This plugin is an extended version of the Co-Authors plugin developed by Weston Ruter.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin8,526 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,002 | 1,540 | 4,187 |
PO File | 8 | 1,031 | 1,182 | 2,420 |
JavaScript | 9 | 126 | 151 | 630 |
CSS | 5 | 66 | 29 | 577 |
Markdown | 4 | 102 | 0 | 429 |
JSX | 2 | 39 | 96 | 195 |
Cucumber | 3 | 15 | 0 | 81 |
YAML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 74.56 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 270.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 14 | 8.33% |
▷ Public methods | 159 | 94.64% |
▷ Protected methods | 6 | 3.57% |
▷ Private methods | 3 | 1.79% |
Functions | 28 | |
▷ Named functions | 26 | 92.86% |
▷ Anonymous functions | 2 | 7.14% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
.wordpress-org/screenshot-2.png | 156.79KB | 36.56KB | ▼ 76.68% |
.wordpress-org/icon-256x256.png | 6.67KB | 6.67KB | 0.00% |
.wordpress-org/screenshot-1.png | 34.19KB | 10.28KB | ▼ 69.94% |
lib/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |