Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼153.58ms] Passed 4 tests
Analyzing server-side resources used by Author Stats
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.03 | 31.64 ▼0.17 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.24 ▼0.90 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 43.06 ▼8.47 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.37 ▼604.79 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.95 ▲0.50 |
Author Stats /wp-admin/index.php?page=author-stats | 2.98 | 28.71 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Author Stats: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.92 ▲0.40 | 11.59 ▼0.06 | 49.18 ▲0.87 |
Dashboard /wp-admin | 2,978 ▲47 | 5.92 ▼0.29 | 142.77 ▼16.55 | 106.91 ▼1.51 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.01 | 62.68 ▼3.65 | 94.94 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,675 ▼8 | 18.87 ▲0.67 | 390.82 ▼39.06 | 107.28 ▼1.71 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▲0.04 | 155.49 ▲5.53 | 120.80 ▲2.89 |
Author Stats /wp-admin/index.php?page=author-stats | 1,091 | 2.50 | 63.47 | 69.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=author-stats
- > Notice in wp-content/plugins/author-stats/php/stats.php+129
Undefined index: author
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/author-stats/author-stats.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/author-stats/php/display_stats.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/index.php?page=author-stats
- > Network (severe)
wp-content/plugins/author-stats/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in author-stats/assets to your readme.txt
author-stats/author-stats.php Passed 13 tests
The main PHP file in "Author Stats" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
46 characters long description:
Displays various metrics for a selected author
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin329 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 12 | 327 |
CSS | 1 | 1 | 5 | 1 |
JavaScript | 1 | 1 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 5.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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