Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼296.12ms] Passed 4 tests
An overview of server-side resources used by Top Authors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 51.93 ▲1.26 |
Dashboard /wp-admin | 3.50 ▲0.10 | 32.06 ▼1.66 |
Posts /wp-admin/edit.php | 3.74 ▲0.10 | 36.36 ▲0.78 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.01 | 98.89 ▼1,175.99 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 24.62 ▼7.61 |
Server storage [IO: ▲0.08MB] [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: 15 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_top-authors |
ta_version |
Browser metrics Passed 4 tests
Top Authors: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲13 | 15.86 ▼0.14 | 5.61 ▼0.35 | 2.21 ▼0.57 |
Dashboard /wp-admin | 2,895 ▲37 | 6.07 ▼0.05 | 119.77 ▼11.18 | 160.31 ▲4.13 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.24 ▲0.00 | 61.70 ▼0.67 | 137.84 ▼0.04 |
Add New Post /wp-admin/post-new.php | 1,686 ▼4 | 18.20 ▼2.75 | 409.77 ▲16.13 | 154.82 ▼1.90 |
Media Library /wp-admin/upload.php | 1,695 ▼6 | 5.51 ▲0.01 | 142.08 ▲0.88 | 186.30 ▼2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 2 options
- widget_top-authors
- ta_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-authors/class-top-authors-widget.php:23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/top-authors/class-top-authors-widget.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: posts, authors, widget, list, gravatar
top-authors/top_authors.php 92% from 13 tests
The entry point to "Top Authors" version 1.0.11 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("top-authors.php" instead of "top_authors.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin624 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 116 | 279 | 374 |
CSS | 5 | 30 | 17 | 125 |
PO File | 1 | 30 | 30 | 94 |
JavaScript | 2 | 7 | 4 | 31 |
PHP code Passed 2 tests
Analyzing 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.30 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin