Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼139.97ms] 75% from 4 tests
An overview of server-side resources used by Reward for Comment
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 3,138.93ms on /wp-admin/options-general.php?page=reward-for-comment)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.32 | 36.20 ▲13.57 |
Dashboard /wp-admin | 3.27 ▲0.21 | 47.06 ▲1.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.27 | 46.53 ▲12.19 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.19 | 90.23 ▼569.58 |
Media Library /wp-admin/upload.php | 3.21 ▲0.21 | 31.87 ▼3.69 |
Reward for Comment /wp-admin/options-general.php?page=reward-for-comment | 3.19 | 3,138.93 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reward for Comment
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,932 ▲336 | 16.63 ▲1.12 | 23.61 ▲14.34 | 110.79 ▲61.77 |
Dashboard /wp-admin | 3,083 ▲149 | 6.32 ▲0.37 | 138.76 ▼4.83 | 183.89 ▲76.49 |
Posts /wp-admin/edit.php | 2,827 ▲88 | 2.58 ▼0.14 | 70.97 ▲6.24 | 135.94 ▲43.72 |
Add New Post /wp-admin/post-new.php | 1,705 ▲33 | 17.33 ▼1.53 | 354.11 ▼33.42 | 199.80 ▲90.87 |
Media Library /wp-admin/upload.php | 1,892 ▲82 | 5.19 ▲0.16 | 145.64 ▲3.40 | 180.18 ▲63.42 |
Reward for Comment /wp-admin/options-general.php?page=reward-for-comment | 2,493 | 2.88 | 77.75 | 112.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/reward-for-comment/reward-for-comment.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (**Comments** - Front-end, Administrator view), #2 (**Comment** - Commenter view, comment is rewarded), #3 (**Comment** - Other user view), #4 (**Comment** - Guest view), #5 (**Comment** - Administrator view), #6 (**Comments** - Back-end), #7 (**Crypto-currency settings** - Admin interface), #8 (**Other settings** - Admin interface)
reward-for-comment/reward-for-comment.php Passed 13 tests
The entry point to "Reward for Comment" version 1.0.0 is a PHP file that has certain tags in its header comment area
57 characters long description:
Reward users for creating unique content for your website
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 detected1,620 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 97 | 39 | 754 |
SVG | 1 | 0 | 0 | 288 |
PO File | 1 | 100 | 105 | 250 |
JavaScript | 2 | 25 | 16 | 195 |
CSS | 2 | 19 | 8 | 133 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
9 PNG files occupy 0.36MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 37.84KB | 16.89KB | ▼ 55.36% |
screenshot-8.png | 27.42KB | 17.52KB | ▼ 36.12% |
screenshot-3.png | 45.94KB | 20.12KB | ▼ 56.21% |
screenshot-4.png | 59.16KB | 26.75KB | ▼ 54.78% |
screenshot-5.png | 31.70KB | 11.91KB | ▼ 62.44% |