83% emergency-management

Code Review | Emergency Management

WordPress plugin Emergency Management scored83%from 54 tests.

About plugin

  • Plugin page: emergency-management
  • Plugin version: 1.4.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Dec 2, 2020
  • Latest release: Nov 23, 2023
  • Number of updates: 159
  • Update frequency: every 6.8 days
  • Top authors: mitfi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,355 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.85ms] Passed 4 tests

A check of server-side resources used by Emergency Management
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.42 ▼2.03
Dashboard /wp-admin3.34 ▲0.0347.36 ▼2.21
Posts /wp-admin/edit.php3.39 ▲0.0350.31 ▲1.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.71 ▼1.02
Media Library /wp-admin/upload.php3.26 ▲0.0335.17 ▲2.57
EM - Emergency Management /wp-admin/users.php?page=mfem-emergency-management3.2941.94

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
mfem_activated

Browser metrics Passed 4 tests

Emergency Management: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6614.54 ▲0.282.09 ▲0.4947.55 ▲4.36
Dashboard /wp-admin2,211 ▲345.66 ▲0.0895.50 ▼5.9742.68 ▼0.40
Posts /wp-admin/edit.php2,116 ▲132.00 ▼0.0242.35 ▲2.2235.18 ▼4.46
Add New Post /wp-admin/post-new.php1,543 ▲1725.17 ▲4.01631.58 ▼8.5862.98 ▲12.66
Media Library /wp-admin/upload.php1,413 ▲134.21 ▼0.0198.01 ▼1.6241.54 ▲0.74
EM - Emergency Management /wp-admin/users.php?page=mfem-emergency-management1,8106.56146.32129.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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/users.php?page=mfem-emergency-management
    • > Network (severe)
    https://www.paypalobjects.com/en_DE/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Admin settings page), #2 (eMail editor view)
You can look at the official readme.txt

emergency-management/emergency-management.php 92% from 13 tests

"Emergency Management" version 1.4.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,540 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP52661291,051
PO File1123171413
JavaScript16847
CSS1151129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions48
▷ Named functions4491.67%
▷ Anonymous functions48.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There are no PNG files in this plugin