Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼252.58ms] Passed 4 tests
This is a short check of server-side resources used by Fa Comment Rating
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 36.24 ▲16.55 |
Dashboard /wp-admin | 3.07 ▲0.02 | 53.09 ▲12.25 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 42.10 ▲3.05 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 86.46 ▼1,024.29 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 40.36 ▼1.32 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fa Comment Rating
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲213 | 16.25 ▲0.71 | 14.17 ▲2.90 | 45.45 ▲0.13 |
Dashboard /wp-admin | 2,962 ▲112 | 6.10 ▲0.28 | 143.71 ▲10.44 | 100.71 ▼3.45 |
Posts /wp-admin/edit.php | 2,709 ▲3 | 2.69 ▲0.00 | 65.06 ▼1.80 | 79.90 ▼11.54 |
Add New Post /wp-admin/post-new.php | 1,594 ▼59 | 21.89 ▲3.27 | 263.52 ▼93.49 | 103.63 ▼7.75 |
Media Library /wp-admin/upload.php | 1,778 ▲6 | 5.02 ▲0.01 | 162.23 ▲4.07 | 126.05 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: A description for screenshot #5 is required in fa-comment-rating/assets to your readme.txt
fa-comment-rating/wp-fa-comment-rating.php 85% from 13 tests
The main file in "Fa Comment Rating" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("fa-comment-rating.php" instead of "wp-fa-comment-rating.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin2,986 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 11 | 139 | 374 | 237 |
CSS | 2 | 0 | 3 | 64 |
JavaScript | 1 | 4 | 2 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin