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.02MB] [CPU: ▼297.90ms] Passed 4 tests
Analyzing server-side resources used by 5 Emotions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.06 | 54.53 ▼1.68 |
Dashboard /wp-admin | 3.45 ▲0.05 | 34.84 ▼1.19 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 37.16 ▼1.14 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.05 | 92.83 ▼1,187.57 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 24.34 ▼0.14 |
5 Emotions /wp-admin/options-general.php?page=five-emo-wp | 3.30 | 22.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_fiveemo_wp_widget |
Browser metrics Passed 4 tests
5 Emotions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,919 ▲165 | 15.80 ▲0.11 | 9.23 ▲2.39 | 3.12 ▼0.89 |
Dashboard /wp-admin | 2,902 ▲41 | 6.21 ▲0.00 | 119.12 ▼16.09 | 153.91 ▼9.78 |
Posts /wp-admin/edit.php | 2,698 ▲4 | 3.26 ▲0.03 | 66.00 ▲0.75 | 142.60 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,639 ▼51 | 21.36 ▲2.43 | 403.84 ▼1.04 | 147.51 ▼4.15 |
Media Library /wp-admin/upload.php | 1,711 ▲16 | 5.55 ▲0.03 | 143.70 ▲0.99 | 191.99 ▲1.76 |
5 Emotions /wp-admin/options-general.php?page=five-emo-wp | 1,056 | 8.51 | 161.80 | 103.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_fiveemo_wp_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-emotions/admin/five-emo-wp-admin.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/5-emotions/includes/five-emo-widget.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=five-emo-wp
- > Console-api (severe) in unknown
https://www.5emotions.de/main.96e774d3210dcd27.js 0:178082 "MSAL LOGGING: 0 [Wed, 23 Mar 2022 06:28:24 GMT] : @azure/msal-angular@2.1.1 : Error - Guard - error while logging in, unable to activate"
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
5-emotions/five-emo-wp.php 85% from 13 tests
Analyzing the main PHP file in "5 Emotions" version 1.5
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("5-emotions.php" instead of "five-emo-wp.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin165 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 56 | 114 | 141 |
PO File | 1 | 4 | 0 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 11.35KB | 4.76KB | ▼ 58.11% |
assets/banner-772x250.png | 21.33KB | 7.99KB | ▼ 62.57% |