Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.55ms] Passed 4 tests
A check of server-side resources used by Like Posts & Comments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 50.52 ▲10.16 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.53 ▼18.89 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 55.01 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 97.73 ▼2.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 37.04 ▼2.58 |
Likes Posts & Comments /wp-admin/options-general.php?page=likes_options_page | 3.21 | 31.76 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: 2 new tables, 10 new options
New tables |
---|
wp_likes_comments |
wp_likes_posts |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
like_comment_label_1 |
unlike_post_label_1 |
db_upgraded |
like_post_label_1 |
can_compress_scripts |
unlike_comment_label_1 |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Like Posts & Comments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.66 ▼0.58 | 8.11 ▲6.31 | 41.65 ▼1.52 |
Dashboard /wp-admin | 2,222 ▲16 | 5.90 ▼0.00 | 115.30 ▲12.52 | 37.73 ▼5.88 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 39.80 ▼0.15 | 36.27 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.12 ▲5.56 | 662.84 ▼34.37 | 55.52 ▼0.08 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.23 ▲0.00 | 106.45 ▼0.78 | 45.28 ▼3.23 |
Likes Posts & Comments /wp-admin/options-general.php?page=likes_options_page | 843 | 2.04 | 26.33 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 10 options in the database
- unlike_post_label_1
- like_post_label_1
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- like_comment_label_1
- widget_theysaidso_widget
- unlike_comment_label_1
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=likes_options_page
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=likes_options_page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/likes-posts-comments/likes-posts-comments.php:33
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/likes-posts-comments/likes-posts-comments.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
- Donate link: Invalid url: ""
- Contributors: The plugin tags were not defined
likes-posts-comments/likes-posts-comments.php Passed 13 tests
Analyzing the main PHP file in "Like Posts & Comments" version 1.1
64 characters long description:
Add a button for like any post (or custom post type) and comment
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected622 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 72 | 507 |
JavaScript | 1 | 10 | 8 | 66 |
PO File | 1 | 29 | 60 | 49 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.50% |
Functions | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin