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.11MB] [CPU: ▼7.25ms] Passed 4 tests
Analyzing server-side resources used by WP Reactions Box
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 27.16 ▼15.74 |
Dashboard /wp-admin | 3.42 ▲0.12 | 50.05 ▼2.62 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 51.25 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 89.31 ▼7.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.50 ▼3.39 |
WP Reactions Box /wp-admin/index.php?page=wpreactionsbox | 3.31 | 39.45 |
WP Reactions Box /wp-admin/options-general.php?page=wpreactionsbox | 3.29 | 32.70 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_hkp_reactions_posts |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
hkp_reactions_db_version |
Browser metrics Passed 4 tests
WP Reactions Box: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.39 ▼0.96 | 9.55 ▲7.79 | 45.47 ▲2.07 |
Dashboard /wp-admin | 2,206 ▲29 | 5.58 ▼0.10 | 89.91 ▼6.37 | 36.66 ▼5.23 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.04 | 39.21 ▲3.24 | 35.42 ▼17.46 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.08 ▲0.07 | 663.19 ▼38.46 | 53.43 ▼6.30 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.19 ▲0.01 | 102.27 ▼12.54 | 41.82 ▼6.09 |
WP Reactions Box /wp-admin/index.php?page=wpreactionsbox | 1,113 | 1.65 | 24.38 | 28.48 |
WP Reactions Box /wp-admin/options-general.php?page=wpreactionsbox | 1,006 | 2.05 | 23.69 | 31.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_hkp_reactions_posts
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- hkp_reactions_db_version
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- 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 errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpreactionsbox
- > Notice in wp-content/plugins/wp-reactions-box/wp-reactions-admin.php+176
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-reactions-box/wp-reactions-admin.php:357
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-reactions-box/wp-reactions.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
wp-reactions-box/wp-reactions.php 92% from 13 tests
The primary PHP file in "WP Reactions Box" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-reactions-box.php" instead of "wp-reactions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected942 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 132 | 35 | 636 |
CSS | 1 | 19 | 1 | 217 |
JavaScript | 1 | 29 | 2 | 89 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 22 | 91.67% |
▷ Anonymous functions | 2 | 8.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg-heart.png | 2.61KB | 1.72KB | ▼ 34.15% |
images/heart1.png | 0.67KB | 0.65KB | ▼ 2.77% |
images/themes/dark/emoticon.png | 34.99KB | 11.84KB | ▼ 66.16% |
images/logo-admin.png | 1.23KB | 1.11KB | ▼ 9.87% |
images/smiley.png | 1.42KB | 1.57KB | 0.00% |