Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.09ms] Passed 4 tests
A check of server-side resources used by WP Applaud
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 22.80 ▼20.34 |
Dashboard /wp-admin | 3.35 ▲0.05 | 57.56 ▲7.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 64.22 ▲13.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 111.40 ▲2.17 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 45.14 ▲6.74 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_wp_applaud_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Applaud
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,983 ▲197 | 14.09 ▼0.22 | 5.42 ▲3.53 | 38.81 ▼9.99 |
Dashboard /wp-admin | 2,291 ▲88 | 4.90 ▼0.98 | 100.15 ▼7.48 | 85.22 ▲47.96 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.98 ▼0.01 | 40.54 ▲0.74 | 42.63 ▲5.87 |
Add New Post /wp-admin/post-new.php | 6,402 ▲4,861 | 27.72 ▲4.55 | 1,002.20 ▲306.94 | 85.43 ▼8.96 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.10 ▼0.12 | 103.46 ▼5.30 | 76.97 ▲27.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_wp_applaud_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-applaud/functions/widgets.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-applaud/functions/settings.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: clap, medium, applaud, feedback
wp-applaud/wp-applaud.php Passed 13 tests
Analyzing the main PHP file in "WP Applaud" version 1.5
51 characters long description:
Add "applaud" functionality to your posts and pages
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,356 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 353 | 229 | 664 |
PHP | 6 | 149 | 44 | 551 |
SVG | 3 | 0 | 3 | 74 |
CSS | 3 | 15 | 30 | 67 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/favicon.png | 0.51KB | 0.49KB | ▼ 3.08% |
assets/images/heart.png | 1.06KB | 0.89KB | ▼ 16.06% |
assets/images/heart_active.png | 1.36KB | 1.09KB | ▼ 19.89% |
assets/images/hearts.png | 2.24KB | 1.75KB | ▼ 21.71% |
assets/images/wp-applaud.png | 0.40KB | 0.30KB | ▼ 24.82% |