Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.67ms] Passed 4 tests
This is a short check of server-side resources used by First Comment Redirect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.78 ▲3.89 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.95 ▼16.10 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.61 ▲1.19 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.37 ▼22.93 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.00 ▲3.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
section_general |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for First Comment Redirect
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.35 ▲0.18 | 1.74 ▼0.06 | 36.80 ▼3.88 |
Dashboard /wp-admin | 2,211 ▲31 | 5.62 ▼0.10 | 89.37 ▼2.10 | 38.66 ▼5.05 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.02 ▼0.01 | 39.16 ▲2.53 | 36.24 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.16 ▲0.26 | 677.26 ▼26.30 | 59.08 ▼0.21 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.19 ▼0.04 | 95.70 ▼19.21 | 44.70 ▼2.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- section_general
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (First Comment Redirect Settings Page) image required
first-comment-redirect/first-comment-redirect.php 92% from 13 tests
"First Comment Redirect" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 333 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected305 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 255 | 260 |
PO File | 1 | 13 | 15 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 15 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 25.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.33KB | 6.50KB | ▼ 42.65% |