Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by AffiliateWP - Leaderboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.42 ▼4.23 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.51 ▼5.37 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.04 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.84 ▼9.02 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.69 ▲2.26 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AffiliateWP - Leaderboard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.24 ▼1.14 | 1.76 ▼0.05 | 40.20 ▼3.88 |
Dashboard /wp-admin | 2,209 ▲35 | 5.82 ▲0.93 | 101.08 ▼17.00 | 39.96 ▼9.26 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.02 | 34.55 ▼2.00 | 32.34 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.23 ▼0.21 | 663.05 ▼17.54 | 50.91 ▼3.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▼0.13 | 93.71 ▼15.59 | 40.72 ▼6.15 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/affiliatewp-leaderboard/includes/class-widget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #2, #3 in affiliatewp-leaderboard/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
affiliatewp-leaderboard/affiliatewp-leaderboard.php 85% from 13 tests
"AffiliateWP - Leaderboard" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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
Everything looks great! No dangerous files found in this plugin876 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 278 | 1,020 | 821 |
PO File | 1 | 18 | 18 | 55 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.86 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 2 | 28.57% |
▷ Concrete classes | 5 | 71.43% |
▷ Final classes | 1 | 20.00% |
Methods | 79 | |
▷ Static methods | 1 | 1.27% |
▷ Public methods | 40 | 50.63% |
▷ Protected methods | 22 | 27.85% |
▷ Private methods | 17 | 21.52% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin