72% wp-mourning

Code Review | WP Mourning

WordPress plugin WP Mourning scored72%from 54 tests.

About plugin

  • Plugin page: wp-mourning
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Oct 30, 2016
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: ninenote (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active /2,474 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.11 ▼34.34
Dashboard /wp-admin3.35 ▲0.0048.90 ▼12.99
Posts /wp-admin/edit.php3.40 ▲0.0451.34 ▼3.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.03 ▼9.98
Media Library /wp-admin/upload.php3.27 ▲0.0436.54 ▼1.11
Mourning /wp-admin/options-general.php?page=wpm_setting3.2232.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲18913.62 ▼0.9610.31 ▲8.6344.30 ▲2.89
Dashboard /wp-admin2,204 ▲275.80 ▲0.1195.32 ▼0.7841.38 ▲4.27
Posts /wp-admin/edit.php2,114 ▲142.26 ▲0.2140.50 ▼1.3838.49 ▼1.17
Add New Post /wp-admin/post-new.php1,551 ▲1918.52 ▼4.76596.57 ▼56.1134.80 ▼22.95
Media Library /wp-admin/upload.php1,416 ▲134.23 ▲0.0094.44 ▼4.1446.49 ▼0.21
Mourning /wp-admin/options-general.php?page=wpm_setting9052.1542.3826.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS343511,250
SVG100685
PHP24831177
JavaScript23021

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 code0.25
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/screenshot-2.png33.95KB12.66KB▼ 62.70%
images/screenshot-1.png92.18KB35.84KB▼ 61.12%
admin/images/heart.png3.64KB1.82KB▼ 50.01%
images/wp-mourning-ribbon.png7.74KB3.73KB▼ 51.76%