Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲7.29ms] Passed 4 tests
A check of server-side resources used by Reaction
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 49.28 ▲10.60 |
Dashboard /wp-admin | 3.59 ▲0.29 | 51.34 ▲1.92 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 56.51 ▲11.20 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 112.14 ▲8.60 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 43.69 ▲8.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_reactions_to_comments |
wp_reactions_to_terms |
wp_reactions_to_posts |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Reaction
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲70 | 14.47 ▲0.09 | 1.97 ▲0.31 | 41.07 ▼1.62 |
Dashboard /wp-admin | 2,203 ▲12 | 5.02 ▲0.15 | 112.60 ▲13.07 | 42.94 ▲2.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▼0.00 | 40.05 ▲3.09 | 33.98 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.42 ▲0.27 | 660.12 ▲11.75 | 53.77 ▼1.95 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.10 | 93.93 ▼11.52 | 43.50 ▼7.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_reactions_to_comments
- wp_reactions_to_terms
- wp_reactions_to_posts
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Database' not found in wp-content/plugins/reaction/classes/Source/PostReactionsDatabase.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\WordPress\\Reaction\\Components\\plugin_dir_path() in wp-content/plugins/reaction/classes/Components/Plugin.php:28
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Component' not found in wp-content/plugins/reaction/classes/Ajax.php:5
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Component' not found in wp-content/plugins/reaction/classes/REST.php:13
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Component' not found in wp-content/plugins/reaction/classes/Assets.php:9
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Database' not found in wp-content/plugins/reaction/classes/Source/TermReactionsDatabase.php:11
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\WordPress\\Reaction\\Components\\Database' not found in wp-content/plugins/reaction/classes/Source/CommentReactionsDatabase.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: like, dislike, reaction
reaction/reaction.php 85% from 13 tests
The main file in "Reaction" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.0")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected1,546 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 356 | 543 | 1,540 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 3 | 15.00% |
▷ Concrete classes | 17 | 85.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 24 | 22.43% |
▷ Public methods | 97 | 90.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 9.35% |
Functions | 32 | |
▷ Named functions | 5 | 15.62% |
▷ Anonymous functions | 27 | 84.38% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin