Benchmarks
Plugin footprint 83% from 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.07MB] [CPU: ▼1.29ms] Passed 4 tests
This is a short check of server-side resources used by Post Like
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.15 ▼1.96 |
Dashboard /wp-admin | 3.44 ▲0.14 | 54.76 ▲4.61 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 49.61 ▲3.40 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 79.63 ▼4.07 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.07 ▼2.51 |
Post Like Settings /wp-admin/options-general.php?page=post_like_options | 3.28 | 35.15 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
pl_basic |
pl_style |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Like
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,097 ▲336 | 15.41 ▲0.80 | 5.35 ▲3.55 | 42.67 ▼1.36 |
Dashboard /wp-admin | 2,389 ▲209 | 6.35 ▲0.67 | 120.23 ▲19.90 | 41.76 ▼1.02 |
Posts /wp-admin/edit.php | 2,317 ▲220 | 3.49 ▲1.50 | 49.04 ▲10.53 | 30.16 ▼5.14 |
Add New Post /wp-admin/post-new.php | 1,574 ▲46 | 23.20 ▲0.12 | 649.47 ▼37.55 | 38.18 ▼21.19 |
Media Library /wp-admin/upload.php | 1,454 ▲57 | 4.28 ▲0.07 | 83.18 ▼23.38 | 41.40 ▼4.82 |
Post Like Settings /wp-admin/options-general.php?page=post_like_options | 1,377 | 3.81 | 60.40 | 87.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/post-like/post-like.php
- > /wp-content/plugins/post-like/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: like, post, count, love, unlike
post-like/post-like.php Passed 13 tests
This is the main PHP file of "Post Like" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
131 characters long description:
Post like is a simple ajax based post like/unlike plugin that help your visitors to like posts. Counter shows number of post likes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,091 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 209 | 450 | 818 |
CSS | 2 | 13 | 5 | 190 |
JavaScript | 1 | 11 | 11 | 56 |
SVG | 2 | 0 | 4 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 1 | 1.89% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
No PNG images were found in this plugin