Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by 5 Emotions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.37 ▼6.38 |
Dashboard /wp-admin | 3.34 ▲0.04 | 41.80 ▼7.71 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 48.02 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.67 ▼7.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 34.80 ▲0.41 |
5 Emotions /wp-admin/options-general.php?page=five-emo-wp | 3.23 | 27.86 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_fiveemo_wp_widget |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for 5 Emotions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲185 | 13.61 ▼0.84 | 8.45 ▲6.66 | 36.37 ▼7.22 |
Dashboard /wp-admin | 2,217 ▲26 | 4.88 ▼1.16 | 112.06 ▲8.71 | 41.89 ▼3.92 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.03 ▼0.01 | 39.72 ▲3.67 | 35.35 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 18.10 ▲0.58 | 613.39 ▼65.97 | 63.56 ▲5.37 |
Media Library /wp-admin/upload.php | 1,390 ▼1 | 4.26 ▲0.05 | 97.70 ▼3.40 | 42.36 ▼3.32 |
5 Emotions /wp-admin/options-general.php?page=five-emo-wp | 861 | 8.16 | 131.73 | 35.04 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_fiveemo_wp_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/5-emotions/admin/five-emo-wp-admin.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > 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 [Sat, 07 Oct 2023 05:54:04 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
5-emotions/five-emo-wp.php 85% from 13 tests
The main PHP file in "5 Emotions" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("5-emotions.php" instead of "five-emo-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous 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
There are no cyclomatic complexity problems detected for this plugin
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
All PNG images should be compressed to minimize bandwidth usage for end users
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/banner-772x250.png | 21.33KB | 7.99KB | ▼ 62.57% |
assets/icon-256x256.png | 11.35KB | 4.76KB | ▼ 58.11% |