Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.22ms] Passed 4 tests
This is a short check of server-side resources used by SR Post Like Dislike
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.12 ▼0.10 |
Dashboard /wp-admin | 3.37 ▲0.02 | 43.10 ▼16.38 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 46.45 ▲1.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.43 ▼1.08 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.15 ▲0.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
SR Post Like Dislike: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲187 | 13.65 ▼0.72 | 5.22 ▲3.54 | 40.56 ▲0.87 |
Dashboard /wp-admin | 2,206 ▲17 | 5.86 ▲0.92 | 111.40 ▼1.15 | 43.28 ▲1.16 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▲0.03 | 39.43 ▲3.52 | 34.72 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.07 ▼0.24 | 626.07 ▼12.94 | 79.41 ▲18.32 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▼0.01 | 94.77 ▼9.95 | 39.34 ▼8.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: like and dislike, post likes, like dislike, product likes
sr-post-like-dislike/sr-post-like-dislike.php Passed 13 tests
"SR Post Like Dislike" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
A plugin to add like and dislike functionality to posts,pages, and custom post types.
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 plugin381 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 17 | 277 |
JavaScript | 1 | 2 | 0 | 53 |
CSS | 1 | 10 | 0 | 51 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/like.png | 3.35KB | 1.57KB | ▼ 52.98% |
assets/img/like-solid.png | 3.26KB | 0.67KB | ▼ 79.55% |
assets/img/like-bordered.png | 0.93KB | 0.90KB | ▼ 4.08% |
assets/img/dislike.png | 2.29KB | 1.33KB | ▼ 42.11% |