Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.71ms] Passed 4 tests
A check of server-side resources used by WP Author Ranking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.82 ▼0.58 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.84 ▼2.22 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 41.93 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 78.29 ▼11.79 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.04 ▼2.60 |
WP Author Ranking /wp-admin/options-general.php?page=wp-author-ranking/index.php | 3.24 | 33.01 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_author_ranking |
New WordPress options |
---|
wpAuthorRanking_countUU |
db_upgraded |
wpAuthorRanking_countSingle |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Author Ranking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.44 ▼0.11 | 1.71 ▲0.13 | 43.79 ▲3.56 |
Dashboard /wp-admin | 2,193 ▲19 | 5.57 ▼0.03 | 81.93 ▼4.73 | 40.03 ▼6.25 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.05 | 33.39 ▼1.81 | 37.02 ▼7.55 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.74 ▲0.67 | 592.46 ▼46.49 | 53.79 ▼8.18 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▲0.02 | 102.48 ▲4.58 | 43.95 ▲0.81 |
WP Author Ranking /wp-admin/options-general.php?page=wp-author-ranking/index.php | 851 | 2.02 | 24.79 | 23.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_author_ranking
- This plugin does not fully uninstall, leaving 8 options in the database
- wpAuthorRanking_countSingle
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wpAuthorRanking_countUU
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-author-ranking/index.php:22
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-author-ranking/index.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function date_i18n() in wp-content/plugins/wp-author-ranking/setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The setting menu.) image not found
wp-author-ranking/index.php 92% from 13 tests
The primary PHP file in "WP Author Ranking" version 1.0.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-author-ranking.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected350 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 10 | 201 |
Markdown | 1 | 29 | 0 | 81 |
PO File | 2 | 21 | 4 | 68 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.23KB | 19.36KB | ▼ 4.27% |