84% managementmaintainence-recording

Code Review | Management & Maintenance Records

WordPress plugin Management & Maintenance Records scored 84% from 54 tests.

About plugin

  • Plugin page: managementmaintai...
  • Plugin version: 0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jul 5, 2020
  • Latest release: Jul 5, 2020
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: lucdecri (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,988 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 gracefully, with no errors

Server metrics [RAM: ▼0.65MB] [CPU: ▼13.41ms] Passed 4 tests

A check of server-side resources used by Management & Maintenance Records
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.21 ▲2.28
Dashboard /wp-admin3.33 ▲0.0347.70 ▼4.21
Posts /wp-admin/edit.php3.38 ▲0.0247.37 ▼0.15
Add New Post /wp-admin/post-new.php3.21 ▼2.6835.21 ▼51.57
Media Library /wp-admin/upload.php3.25 ▲0.0234.61 ▲3.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Management & Maintenance Records
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10813.32 ▼1.041.67 ▼0.0740.17 ▼6.84
Dashboard /wp-admin2,246 ▲585.83 ▲0.9494.10 ▼21.7939.75 ▼7.30
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0533.47 ▼2.9434.69 ▼2.95
Add New Post /wp-admin/post-new.php1,517 ▲317.72 ▲0.13704.07 ▲63.7154.04 ▲4.95
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.0894.37 ▼3.1640.94 ▼0.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/managementmaintainence-recording/mmr.php:117

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (List of activities), #2 (Edit activities)
The official readme.txt is a good inspiration

managementmaintainence-recording/mmr.php 92% from 13 tests

This is the main PHP file of "Management & Maintenance Records" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("managementmaintainence-recording.php" instead of "mmr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291898

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected