Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.28ms] Passed 4 tests
A check of server-side resources used by HeartThis
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 39.17 ▲2.39 |
Dashboard /wp-admin | 3.41 ▲0.06 | 53.08 ▼6.07 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 45.43 ▲0.99 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.17 ▼13.26 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.66 ▲1.24 |
HeartThis /wp-admin/options-general.php?page=heart-this | 3.30 | 32.41 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_heart-this-widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
heart_this_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for HeartThis
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.54 ▼0.81 | 5.87 ▲4.06 | 41.23 ▼0.12 |
Dashboard /wp-admin | 2,210 ▲22 | 4.79 ▼0.12 | 109.52 ▲6.80 | 42.60 ▲1.85 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.01 | 35.49 ▼2.22 | 32.07 ▼5.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▲14 | 22.86 ▼0.33 | 653.93 ▼31.13 | 56.48 ▼7.99 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 99.24 ▼4.02 | 44.66 ▼1.50 |
HeartThis /wp-admin/options-general.php?page=heart-this | 874 | 2.03 | 25.03 | 30.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_heart-this-widget
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/heart-this/admin/views/settings-page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/heart-this/admin/views/setting-instructions.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/heart-this/includes/widgets/views/display-popular-posts.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/heart-this/includes/widgets/views/display-popular-posts.php:21
- > PHP Notice
Undefined variable: checked in wp-content/plugins/heart-this/admin/views/setting-ajax-hearts.php on line 13
- > PHP Notice
Undefined variable: checked in wp-content/plugins/heart-this/admin/views/setting-enable-css.php on line 13
- > PHP Notice
Undefined variable: args in wp-content/plugins/heart-this/includes/widgets/views/display-popular-posts.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/heart-this/admin/views/setting-ajax-hearts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function heart_this_admin_get_show_option_values() in wp-content/plugins/heart-this/admin/views/setting-show-on.php:14
- > PHP Notice
Undefined variable: name in wp-content/plugins/heart-this/admin/views/setting-ajax-hearts.php on line 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 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
1 plugin tags: cool stuff
heart-this/heart-this.php Passed 13 tests
The principal PHP file in "HeartThis" v. 0.1.0 is loaded by WordPress automatically on each request
82 characters long description:
Add a simple heart button to let people tell you they love your WordPress content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,245 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 194 | 855 | 671 |
JavaScript | 6 | 127 | 44 | 413 |
CSS | 4 | 14 | 14 | 144 |
Markdown | 2 | 12 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/heart-animation.png | 11.42KB | 12.44KB | 0.00% |
images/src/heart-animation.png | 11.42KB | 12.44KB | 0.00% |