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.08MB] [CPU: ▼3.12ms] Passed 4 tests
A check of server-side resources used by Simple Like Dislike Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.65 ▼0.33 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.22 ▼6.54 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 52.51 ▼1.96 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.37 ▼3.66 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 49.19 ▲13.06 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_simplelikecounter |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_sal_most_liked_posts_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Like Dislike Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 13.70 ▼0.70 | 7.08 ▲4.95 | 41.08 ▼4.26 |
Dashboard /wp-admin | 2,231 ▲43 | 5.93 ▲1.05 | 109.53 ▼9.92 | 42.66 ▼0.60 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.04 ▼0.01 | 41.67 ▲4.99 | 34.75 ▲2.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.31 ▲5.66 | 682.31 ▼8.47 | 51.68 ▲0.34 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.18 ▼0.13 | 110.54 ▲7.32 | 45.64 ▼1.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_sal_most_liked_posts_widget
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-like-dislike-posts/simple-like-dislike-posts.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-like-dislike-posts/functions.php:88
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-like-dislike-posts/widget.php:2
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The plugin page where you can configure options)
simple-like-dislike-posts/simple-like-dislike-posts.php Passed 13 tests
The entry point to "Simple Like Dislike Posts" version 1.0 is a PHP file that has certain tags in its header comment area
67 characters long description:
A simple plugin to appy AJAX like and dislike feature in your posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,327 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 5 | 34 | 14 | 491 |
JavaScript | 2 | 6 | 1 | 89 |
CSS | 2 | 0 | 4 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 145.08KB | 50.32KB | ▼ 65.31% |