Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.03ms] Passed 4 tests
This is a short check of server-side resources used by Likes and Dislikes Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 45.74 ▲0.32 |
Dashboard /wp-admin | 3.32 ▲0.01 | 54.82 ▼0.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 53.11 ▼1.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.84 ▼1.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.45 ▼1.62 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_inprosys_ef_likes_dislikes |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Likes and Dislikes Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲114 | 13.79 ▼0.83 | 9.38 ▲7.72 | 42.60 ▼6.88 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.26 | 102.47 ▲2.06 | 42.90 ▼2.80 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.14 ▲0.18 | 35.06 ▼5.01 | 33.81 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 22.85 ▼0.69 | 713.47 ▲49.01 | 53.58 ▼3.91 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.02 | 106.45 ▼5.05 | 47.17 ▲1.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/inprosysmedia-likes-dislikes-post/inprosysmedia-likes-dislikes-post.php+211
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
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 just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: post dislike, dislike count, like count, like, post like...
inprosysmedia-likes-dislikes-post/inprosysmedia-likes-dislikes-post.php Passed 13 tests
The principal PHP file in "Likes and Dislikes Plugin" v. 1.0.0 is loaded by WordPress automatically on each request
100 characters long description:
It helps to like or dislike post as well as store its value in database against user ID and post ID.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin230 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 62 | 45 | 120 |
CSS | 1 | 11 | 0 | 85 |
JavaScript | 1 | 3 | 0 | 20 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 40.59KB | 13.26KB | ▼ 67.32% |
assets/screenshot-3.png | 40.33KB | 13.18KB | ▼ 67.31% |
assets/screenshot-1.png | 40.19KB | 13.14KB | ▼ 67.30% |