Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.25MB] [CPU: ▼290.32ms] Passed 4 tests
Server-side resources used by Additional Authors
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.31 | 59.95 ▲3.62 |
Dashboard /wp-admin | 3.67 ▲0.25 | 37.75 ▲4.61 |
Posts /wp-admin/edit.php | 3.89 ▲0.25 | 43.41 ▲5.74 |
Add New Post /wp-admin/post-new.php | 7.15 ▲0.18 | 100.35 ▼1,170.92 |
Media Library /wp-admin/upload.php | 3.61 ▲0.31 | 26.24 ▲1.43 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: 1 new table, no new options
New tables |
---|
wp_additional_authors |
Browser metrics Passed 4 tests
Additional Authors: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.23 ▲0.54 | 6.66 ▲0.32 | 2.54 ▲0.08 |
Dashboard /wp-admin | 2,895 ▲34 | 6.02 ▼0.16 | 118.49 ▼19.26 | 157.12 ▼9.19 |
Posts /wp-admin/edit.php | 2,704 ▲10 | 3.24 ▲0.01 | 62.66 ▼2.50 | 140.70 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,681 ▲20 | 17.61 ▲1.60 | 433.26 ▲22.82 | 154.17 ▼3.94 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.55 ▲0.04 | 137.39 ▼5.75 | 184.37 ▼8.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_additional_authors
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'AdditionalAuthors\\Plugin' not found in wp-content/plugins/additional-authors/deprecated.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_author_meta() in wp-content/plugins/additional-authors/templates/additional-authors-the-author-posts-link.tpl.php:7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/additional-authors/templates/additional-authors-the-authors-posts-links.tpl.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/additional-authors/public-functions.php:60
- > PHP Notice
Undefined variable: additional_authors_ids in wp-content/plugins/additional-authors/templates/additional-authors-the-authors-posts-links.tpl.php on line 7
- > PHP Notice
Undefined variable: additional_authors_ids in wp-content/plugins/additional-authors/templates/additional-authors-the-authors.tpl.php on line 10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/additional-authors/templates/additional-authors-the-authors.tpl.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'ph_user_destination' not found in wp-content/plugins/additional-authors/inc/migrate.additional-author-destination.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: author, meta fields
additional-authors/additional-authors.php 92% from 13 tests
The principal PHP file in "Additional Authors" v. 1.2.12 is loaded by WordPress automatically on each request
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")
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
No dangerous file extensions were detected1,442 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 351 | 593 | 1,297 |
CSS | 2 | 14 | 2 | 98 |
PO File | 1 | 10 | 11 | 45 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 8 | 8.60% |
▷ Public methods | 87 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.45% |
Functions | 12 | |
▷ Named functions | 7 | 58.33% |
▷ Anonymous functions | 5 | 41.67% |
Constants | 31 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 31 | 100.00% |
▷ Public constants | 31 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected