Benchmarks
Plugin footprint 47% 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 gracefully, with no errors
Server metrics [RAM: ▲5.36MB] [CPU: ▲37.43ms] 75% from 4 tests
Analyzing server-side resources used by Da Reactions
Please have a look at the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.36MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.95 ▲5.48 | 72.51 ▲31.93 |
Dashboard /wp-admin | 8.97 ▲5.62 | 96.70 ▲34.46 |
Posts /wp-admin/edit.php | 8.97 ▲5.60 | 96.10 ▲45.77 |
Add New Post /wp-admin/post-new.php | 10.65 ▲4.75 | 150.20 ▲59.39 |
Media Library /wp-admin/upload.php | 8.97 ▲5.73 | 75.59 ▲37.54 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.97 | 71.16 |
Server storage [IO: ▲4.62MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 750 new files
Database: 3 new tables, 13 new options
New tables |
---|
wp_da_r_groups |
wp_da_r_votes |
wp_da_r_reactions |
New WordPress options |
---|
widget_theysaidso_widget |
fs_active_plugins |
widget_recent-posts |
fs_debug_mode |
fs_accounts |
widget_da-reactions-most-voted-widget |
da-reactions_general |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Da Reactions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,070 ▲298 | 16.89 ▲2.54 | 7.56 ▲5.60 | 28.46 ▼16.98 |
Dashboard /wp-admin | 2,361 ▲180 | 7.15 ▲1.45 | 161.70 ▲45.74 | 46.97 ▲2.13 |
Posts /wp-admin/edit.php | 2,277 ▲177 | 3.98 ▲1.83 | 62.83 ▲23.77 | 67.25 ▲31.67 |
Add New Post /wp-admin/post-new.php | 1,653 ▲126 | 23.70 ▲0.46 | 753.13 ▲55.94 | 41.04 ▼2.93 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.11 ▼0.10 | 115.73 ▲9.01 | 43.69 ▼0.41 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,173 | 3.53 | 51.55 | 29.18 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/da-reactions/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- Zombie tables were found after uninstall: 3 tables
- wp_da_r_groups
- wp_da_r_reactions
- wp_da_r_votes
- The uninstall procedure has failed, leaving 13 options in the database
- widget_recent-posts
- fs_debug_mode
- db_upgraded
- widget_theysaidso_widget
- da-reactions_general
- da-reactions_notices
- fs_accounts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/da-reactions/templates/template-static.php
- > /wp-content/plugins/da-reactions/templates/template-exposed.php
- > /wp-content/plugins/da-reactions/templates/single-reaction-image.php
- > /wp-content/plugins/da-reactions/templates/template-reveal.php
- > /wp-content/plugins/da-reactions/templates/buttons-placeholder.php
- > /wp-content/plugins/da-reactions/templates/count-badge.php
- > /wp-content/plugins/da-reactions/templates/toggle-button.php
- 46× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: nonce in wp-content/plugins/da-reactions/templates/buttons-placeholder.php on line 10
- > PHP Notice
Undefined variable: single_reaction_image in wp-content/plugins/da-reactions/templates/buttons-placeholder.php on line 13
- > PHP Notice
Undefined variable: reactions in wp-content/plugins/da-reactions/templates/image-buttons.php on line 1
- > PHP Notice
Undefined variable: image in wp-content/plugins/da-reactions/templates/template-reveal.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'DaReactions\\Pages\\SettingsPage' not found in wp-content/plugins/da-reactions/classes/DaReactions/Pages/GraphicSettings.php:22
- > PHP Notice
Undefined variable: settings in wp-content/plugins/da-reactions/templates/template-reveal.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _ex() in wp-content/plugins/da-reactions/templates/admin/buttons-settings-add-new.php:1
- > PHP Notice
Undefined variable: button_html in wp-content/plugins/da-reactions/templates/template-static.php on line 6
- > PHP Notice
Undefined variable: item_type in wp-content/plugins/da-reactions/templates/buttons-placeholder.php on line 8
- > PHP Notice
Undefined variable: number_value in wp-content/plugins/da-reactions/templates/count-badge.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
da-reactions/da-reactions.php Passed 13 tests
The principal PHP file in "Da Reactions" v. 5.0.3 is loaded by WordPress automatically on each request
79 characters long description:
This plugin generates reactions to let your visitors rate content and comments.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin44,025 lines of code in 700 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 178 | 8,261 | 20,041 | 40,684 |
SVG | 495 | 30 | 35 | 1,392 |
PO File | 1 | 330 | 383 | 896 |
CSS | 15 | 34 | 16 | 616 |
JavaScript | 10 | 78 | 238 | 412 |
JSON | 1 | 0 | 0 | 25 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 56.63 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 4 | 4.35% |
▷ Concrete classes | 88 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 1,568 | |
▷ Static methods | 302 | 19.26% |
▷ Public methods | 1,153 | 73.53% |
▷ Protected methods | 18 | 1.15% |
▷ Private methods | 397 | 25.32% |
Functions | 112 | |
▷ Named functions | 103 | 91.96% |
▷ Anonymous functions | 9 | 8.04% |
Constants | 155 | |
▷ Global constants | 104 | 67.10% |
▷ Class constants | 51 | 32.90% |
▷ Public constants | 51 | 100.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
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/icon-256x256.png | 13.44KB | 5.44KB | ▼ 59.51% |
freemius/assets/img/da-reactions.png | 13.44KB | 5.44KB | ▼ 59.51% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |