Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/prolike-button/front-likes.php+162
Trying to access array offset on value of type null
Server metrics [RAM: ▼0.05MB] [CPU: ▼8.88ms] Passed 4 tests
Analyzing server-side resources used by Pro Like Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▼0.56 | 18.89 ▼22.38 |
Dashboard /wp-admin | 3.45 ▲0.10 | 54.59 ▼4.61 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 51.30 ▲6.52 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 87.66 ▼10.90 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 37.08 ▲2.39 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_prolike |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pro Like Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,185 ▲439 | 16.41 ▲2.04 | 5.94 ▲3.99 | 43.05 ▼2.75 |
Dashboard /wp-admin | 2,466 ▲278 | 7.31 ▲2.40 | 138.47 ▲22.81 | 98.06 ▲53.10 |
Posts /wp-admin/edit.php | 2,405 ▲316 | 4.06 ▲2.00 | 54.26 ▲17.20 | 36.14 ▲4.06 |
Add New Post /wp-admin/post-new.php | 1,875 ▲356 | 23.75 ▲0.60 | 676.49 ▲3.67 | 37.28 ▼24.46 |
Media Library /wp-admin/upload.php | 1,478 ▲93 | 5.40 ▲1.21 | 110.20 ▲0.75 | 95.09 ▲49.83 |
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 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
- 6× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/prolike-button/front-likes.php on line 159
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/prolike-button/index.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/prolike-button/front-likes.php:160
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prolike-button/include/enqueue-front.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prolike-button/include/enqueue-admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/prolike-button/admin_post_field.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (25 tag instead of maximum 10)
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in prolike-button/assets to your readme.txt
prolike-button/index.php 92% from 13 tests
"Pro Like Button" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("prolike-button.php" instead of "index.php")
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
Good job! No executable or dangerous file extensions detected1,456 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 136 | 41 | 601 |
CSS | 3 | 55 | 36 | 541 |
JavaScript | 6 | 43 | 16 | 157 |
SVG | 3 | 0 | 3 | 157 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 26 | |
▷ Named functions | 26 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.17MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon_button/image3.png | 16.29KB | 0.83KB | ▼ 94.90% |
assets/img/icon_button/image9.png | 17.44KB | 1.32KB | ▼ 92.46% |
assets/img/icon_button/image5.png | 16.60KB | 1.14KB | ▼ 93.15% |
assets/img/icon_button/image8.png | 18.43KB | 2.28KB | ▼ 87.64% |
assets/img/icon_button/image6.png | 17.73KB | 1.67KB | ▼ 90.55% |