Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.59ms] Passed 4 tests
Server-side resources used by Super Reactions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 35.66 ▼2.16 |
Dashboard /wp-admin | 3.51 ▲0.20 | 56.33 ▲10.82 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.55 ▼5.75 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 83.98 ▼19.12 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.56 ▲0.67 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_super_reactions |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Super Reactions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲126 | 13.40 ▼0.95 | 7.74 ▲5.57 | 36.31 ▼3.22 |
Dashboard /wp-admin | 2,210 ▲33 | 5.65 ▲0.07 | 85.08 ▼8.20 | 36.81 ▼0.49 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▼0.03 | 34.05 ▼2.68 | 31.19 ▼5.49 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.27 ▲4.33 | 609.22 ▲171.47 | 71.04 ▲1.66 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▲0.01 | 97.87 ▼3.89 | 41.54 ▲0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_super_reactions
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function SREA\\plugin_dir_path() in wp-content/plugins/super-reactions/constants.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function SREA\\plugin_dir_path() in wp-content/plugins/super-reactions/constants.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-reactions/admin/ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-reactions/includes/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-reactions/includes/ajax.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: like, reaction
super-reactions/super-reactions.php Passed 13 tests
"Super Reactions" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
36 characters long description:
Get meaningful reactions from users.
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,866 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 393 | 170 | 1,287 |
CSS | 4 | 59 | 0 | 348 |
JavaScript | 4 | 17 | 0 | 226 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 21 | 24.14% |
▷ Public methods | 68 | 78.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 21.84% |
Functions | 33 | |
▷ Named functions | 32 | 96.97% |
▷ Anonymous functions | 1 | 3.03% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/assets/img/logo.png | 3.87KB | 1.15KB | ▼ 70.30% |