Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼33.33ms] Passed 4 tests
An overview of server-side resources used by WP LikeJS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 24.10 ▼18.05 |
Dashboard /wp-admin | 3.02 ▼0.28 | 25.13 ▼34.82 |
Posts /wp-admin/edit.php | 3.02 ▼0.33 | 26.02 ▼22.78 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.86 | 25.41 ▼57.68 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 21.37 ▼11.74 |
LikeJS /wp-admin/options-general.php?page=likejs_settings | 3.02 | 23.40 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP LikeJS
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.24 ▼1.50 | 1.66 ▼0.33 | 37.69 ▼14.46 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.98 | 99.42 ▼18.08 | 39.97 ▼3.40 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 41.30 ▲2.24 | 35.59 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.77 ▼4.99 | 654.92 ▼47.33 | 51.90 ▼13.65 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.26 ▲0.05 | 96.28 ▼12.92 | 41.00 ▼4.43 |
LikeJS /wp-admin/options-general.php?page=likejs_settings | 927 | 2.05 | 26.15 | 43.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-likejs/wp-likejs.php+123
Undefined index: action
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=likejs_settings
- > Notice in wp-content/plugins/wp-likejs/wp-likejs.php+131
Undefined index: action
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=likejs_settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=likejs_settings
- > Notice in wp-content/plugins/wp-likejs/wp-likejs.php+147
Undefined index: saved
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-likejs/wp-likejs.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid url: ""
- Tested up to: Version format is invalid
- Requires at least: Version format is invalid
wp-likejs/wp-likejs.php 92% from 13 tests
"WP LikeJS" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin241 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 26 | 232 |
CSS | 1 | 5 | 12 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bg.png | 13.19KB | 3.41KB | ▼ 74.17% |
img/scroll.png | 7.00KB | 2.22KB | ▼ 68.26% |
img/close.png | 2.80KB | 0.16KB | ▼ 94.19% |
img/likejs.png | 10.26KB | 4.69KB | ▼ 54.24% |