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.24MB] [CPU: ▲5.19ms] Passed 4 tests
This is a short check of server-side resources used by Reaction Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 50.44 ▲9.24 |
Dashboard /wp-admin | 3.54 ▲0.23 | 69.79 ▲17.76 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 53.68 ▲0.05 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 101.78 ▲9.83 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 40.26 ▲1.65 |
Reaction Buttons /wp-admin/options-general.php?page=reaction_buttons | 3.40 | 33.97 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 19 new options
New WordPress options |
---|
db_upgraded |
reaction_buttons_usecss |
theysaidso_admin_options |
reaction_buttons_version |
reaction_buttons_percentages_precision |
reaction_buttons_already_voted_text |
reaction_buttons_tagline |
reaction_buttons_conditionals |
widget_recent-comments |
reaction_buttons_clear_supported_caches |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Reaction Buttons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲187 | 13.63 ▼0.02 | 7.92 ▲3.45 | 42.73 ▼1.21 |
Dashboard /wp-admin | 2,210 ▲4 | 5.79 ▲0.87 | 99.35 ▼2.45 | 36.79 ▼5.87 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 34.68 ▼4.92 | 35.42 ▼0.21 |
Add New Post /wp-admin/post-new.php | 6,463 ▲4,930 | 20.39 ▼2.84 | 941.10 ▲216.17 | 56.90 ▼1.69 |
Media Library /wp-admin/upload.php | 1,392 ▲13 | 4.22 ▼0.06 | 96.97 ▼12.08 | 44.36 ▼0.64 |
Reaction Buttons /wp-admin/options-general.php?page=reaction_buttons | 1,117 | 2.06 | 25.96 | 29.64 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 19 options in the database
- reaction_buttons_already_voted_text
- reaction_buttons_tagline
- db_upgraded
- widget_recent-comments
- reaction_buttons_version
- reaction_buttons_sort_buttons
- reaction_buttons_usecss
- widget_recent-posts
- can_compress_scripts
- reaction_buttons_percentages_precision
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=reaction_buttons
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=reaction_buttons
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/reaction-buttons/reaction_buttons.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/reaction-buttons/reaction_buttons.php:32
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% 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
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
reaction-buttons/reaction_buttons.php 69% from 13 tests
The main PHP file in "Reaction Buttons" ver. 2.1.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Name the main plugin file the same as the plugin slug ("reaction-buttons.php" instead of "reaction_buttons.php")
- Domain Path: Please prefix the domain path with a forward slash character ("/i18n/")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("i18n/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,381 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 204 | 211 | 1,088 |
PO File | 1 | 79 | 80 | 203 |
CSS | 1 | 10 | 15 | 90 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 35 | |
▷ Named functions | 35 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected