Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'pcauthor_activate_post_co_authors' not found or invalid function name
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.07ms] Passed 4 tests
Server-side resources used by Post Co-Authors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.50 ▼0.59 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.25 ▼3.07 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.74 ▼16.16 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 89.48 ▲3.56 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.65 ▲5.14 |
Co Authors /wp-admin/options-general.php?page=co_author_options | 3.26 | 28.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Post Co-Authors: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲145 | 13.56 ▼0.69 | 5.46 ▲3.45 | 43.53 ▼0.35 |
Dashboard /wp-admin | 2,208 ▲23 | 5.83 ▲0.97 | 102.48 ▼9.69 | 41.08 ▼3.30 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.02 ▼0.03 | 39.25 ▲3.63 | 35.65 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 23.05 ▼0.22 | 653.83 ▼30.33 | 62.58 ▲0.35 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.25 ▲0.04 | 107.00 ▲6.13 | 44.79 ▼3.46 |
Co Authors /wp-admin/options-general.php?page=co_author_options | 788 | 2.06 | 24.32 | 23.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'pcauthor_deactivate_post_co_authors' not found or invalid function name
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=co_author_options
- > Notice in wp-content/plugins/post-co-authors/post-co-authors.php+281
Undefined variable: checked
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/post-co-authors/public/partials/post-co-authors-public-display.php
- > /wp-content/plugins/post-co-authors/admin/partials/post-co-authors-admin-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-co-authors/post-co-authors.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: multi authors, author, dynamic authors, multi-authors, custom post...
post-co-authors/post-co-authors.php Passed 13 tests
Analyzing the main PHP file in "Post Co-Authors" version 1.0.0
64 characters long description:
This plugin is Allows multiple authors to be assigned to a post.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin392 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 143 | 532 | 386 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin