Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.82ms] Passed 4 tests
A check of server-side resources used by WP1 Like
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.02 ▲0.33 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.88 ▼14.93 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.57 ▲0.06 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 83.32 ▼16.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 35.26 ▲0.01 |
WP1 Like /wp-admin/options-general.php?page=wp1_like_admin | 3.30 | 30.24 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 13 new options
New WordPress options |
---|
wp1_like_thumb_icon |
wp1_like_button_disabled_color |
widget_theysaidso_widget |
db_upgraded |
wp1_like_post_types |
wp1_like_show_count |
widget_recent-posts |
wp1_like_button_hover_color |
wp1_like_button_text |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP1 Like
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲136 | 13.27 ▼1.48 | 5.10 ▲3.30 | 38.94 ▲0.20 |
Dashboard /wp-admin | 2,222 ▲37 | 6.04 ▲1.12 | 113.03 ▲0.14 | 42.72 ▼4.45 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.08 ▲0.07 | 41.88 ▲0.20 | 37.47 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,547 ▲23 | 18.08 ▼5.05 | 619.42 ▼23.21 | 54.49 ▼0.87 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.35 ▲0.11 | 98.76 ▼3.75 | 40.82 ▼1.12 |
WP1 Like /wp-admin/options-general.php?page=wp1_like_admin | 976 | 2.06 | 29.66 | 33.44 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- wp1_like_button_disabled_color
- db_upgraded
- wp1_like_thumb_icon
- widget_recent-comments
- wp1_like_button_hover_color
- wp1_like_button_color
- theysaidso_admin_options
- can_compress_scripts
- wp1_like_show_count
- wp1_like_post_types
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp1-like/wp1-like_option.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
wp1-like/wp1-like.php Passed 13 tests
Analyzing the main PHP file in "WP1 Like" version 1.1
86 characters long description:
Simple Like button plugin for posts, pages, custom post types and WooCommerce products
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,742 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 329 | 161 | 1,365 |
PHP | 4 | 28 | 21 | 358 |
CSS | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 14 | |
▷ Named functions | 14 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin