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.33MB] [CPU: ▼15.22ms] Passed 4 tests
Analyzing server-side resources used by WP Mourning
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.11 ▼34.34 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.90 ▼12.99 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.34 ▼3.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.03 ▼9.98 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.54 ▼1.11 |
Mourning /wp-admin/options-general.php?page=wpm_setting | 3.22 | 32.80 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Mourning
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 13.62 ▼0.96 | 10.31 ▲8.63 | 44.30 ▲2.89 |
Dashboard /wp-admin | 2,204 ▲27 | 5.80 ▲0.11 | 95.32 ▼0.78 | 41.38 ▲4.27 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.26 ▲0.21 | 40.50 ▼1.38 | 38.49 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,551 ▲19 | 18.52 ▼4.76 | 596.57 ▼56.11 | 34.80 ▼22.95 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.23 ▲0.00 | 94.44 ▼4.14 | 46.49 ▼0.21 |
Mourning /wp-admin/options-general.php?page=wpm_setting | 905 | 2.15 | 42.38 | 26.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpm_setting
- > Notice in wp-content/plugins/wp-mourning/admin/admin.php+96
Trying to access array offset on value of type bool
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 fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-mourning/wp-mourning.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-mourning/admin/admin.php:113
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=wpm_setting
- > Network (severe)
wp-content/plugins/wp-mourning/admin/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=wpm_setting
- > Network (severe)
wp-content/plugins/wp-mourning/admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: grayscale, grey, mourning, condolence, remembrance
wp-mourning/wp-mourning.php 92% from 13 tests
The entry point to "WP Mourning" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected2,133 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 43 | 51 | 1,250 |
SVG | 1 | 0 | 0 | 685 |
PHP | 2 | 48 | 31 | 177 |
JavaScript | 2 | 3 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-2.png | 33.95KB | 12.66KB | ▼ 62.70% |
images/screenshot-1.png | 92.18KB | 35.84KB | ▼ 61.12% |
admin/images/heart.png | 3.64KB | 1.82KB | ▼ 50.01% |
images/wp-mourning-ribbon.png | 7.74KB | 3.73KB | ▼ 51.76% |