83% wp-simple-mouring

Code Review | WP Simple Mourning

WordPress plugin WP Simple Mourning scored83%from 54 tests.

About plugin

  • Plugin page: wp-simple-mouring
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0
  • WordPress version: 6.3.1
  • First release: Jan 20, 2019
  • Latest release: Jan 22, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: montowniastron (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /665 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.44ms] Passed 4 tests

This is a short check of server-side resources used by WP Simple Mourning
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.10 ▲7.21
Dashboard /wp-admin3.33 ▲0.0364.57 ▲13.28
Posts /wp-admin/edit.php3.38 ▲0.0246.33 ▼6.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.56 ▼16.04
Media Library /wp-admin/upload.php3.25 ▲0.0236.20 ▼2.36

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, 10 new options
New tables
wp_simple_mouring
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
simple_mouring_speed
widget_theysaidso_widget
widget_recent-posts
db_upgraded
simple_mouring_db_version
simple_mouring_type
simple_mouring_interval

Browser metrics Passed 4 tests

Checking browser requirements for WP Simple Mourning
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.28 ▼1.405.70 ▲3.6848.02 ▲0.64
Dashboard /wp-admin2,222 ▲345.91 ▲0.09117.78 ▼0.8248.31 ▲1.93
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0242.44 ▲0.8238.76 ▲1.75
Add New Post /wp-admin/post-new.php1,550 ▲1723.20 ▲0.10704.40 ▲26.5762.98 ▲1.83
Media Library /wp-admin/upload.php1,404 ▲164.12 ▼0.09115.04 ▼4.5257.88 ▲7.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 10 options
    • simple_mouring_speed
    • simple_mouring_type
    • simple_mouring_interval
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • simple_mouring_db_version
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_settings_simple_mouring() in wp-content/plugins/wp-simple-mouring/css/wp-simple-mouring-style.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-simple-mouring/wp-simple-mouring.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "festyy.com/wVq900"
  • Screenshots: Please add images for these screenshots: #1 (Widgets Visibility Options), #2 (Device Visibility Options), #3 (Widgets Custom Alignment), #4 (Widget CSS ID & Classes), #5 (Display Widget Logic), #6 (Pagebuilder by SiteOrigin Plugin Widget Options), #7 (Widget Importer & Exporter Feature), #8 (Beaver Builder Integration), #9 (Elementor Pagebuilder Integration), #10 (Advanced Custom Fields ( ACF ) Support)
You can take inspiration from this readme.txt

wp-simple-mouring/wp-simple-mouring.php 85% from 13 tests

The principal PHP file in "WP Simple Mourning" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23427125

PHP code Passed 2 tests

A brief analysis 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 code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected