84% easy-minimal-maintenance-or-coming-soon

Code Review | WordPress Easy Maintenance

WordPress plugin WordPress Easy Maintenance scored 84% from 54 tests.

About plugin

  • Plugin page: easy-minimal-main...
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 5.8.1
  • First release: Sep 2, 2017
  • Latest release: Jul 17, 2020
  • Number of updates: 10
  • Update frequency: every 105.0 days
  • Top authors: lucasdamo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 496 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by WordPress Easy Maintenance
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.08 ▲10.81
Dashboard /wp-admin3.08 ▲0.0248.16 ▼4.82
Posts /wp-admin/edit.php3.16 ▲0.0546.14 ▼2.39
Add New Post /wp-admin/post-new.php5.43 ▼0.0098.27 ▼564.53
Media Library /wp-admin/upload.php3.02 ▲0.0236.29 ▲3.04
Easy Maintenance /wp-admin/options-general.php?page=easy_maintenance_menu3.0229.07

Server storage [IO: ▲0.03MB] [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: 23 new files
Database: no new tables, 4 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Easy Maintenance
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲22516.39 ▲0.8115.31 ▲5.5048.00 ▼0.20
Dashboard /wp-admin2,979 ▲516.10 ▲0.12151.22 ▼12.41121.20 ▼2.99
Posts /wp-admin/edit.php2,748 ▲92.72 ▲0.0074.67 ▲0.2996.50 ▲6.55
Add New Post /wp-admin/post-new.php1,689 ▼1,99817.00 ▲1.90373.38 ▼124.16117.66 ▲5.54
Media Library /wp-admin/upload.php1,816 ▲95.04 ▲0.00157.07 ▼8.90130.35 ▲7.78
Easy Maintenance /wp-admin/options-general.php?page=easy_maintenance_menu1,2432.0953.34119.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 4 options in the database
    • wordpress_easy_maintenance_h2_text
    • wordpress_easy_maintenance_active
    • wordpress_easy_maintenance_h1_text
    • wordpress_easy_maintenance_page_title

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-minimal-maintenance-or-coming-soon/public/partials/wordpress-easy-maintenance-public-display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-minimal-maintenance-or-coming-soon/admin/partials/wordpress-easy-maintenance-admin-display.php:22

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: minimal, free, easy, coming soon, basic...

easy-minimal-maintenance-or-coming-soon/wordpress-easy-maintenance.php 85% from 13 tests

This is the main PHP file of "WordPress Easy Maintenance" version 2.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-minimal-maintenance-or-coming-soon.php" instead of "wordpress-easy-maintenance.php")

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 plugin371 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
▷ Static methods39.68%
▷ Public methods2374.19%
▷ Protected methods00.00%
▷ Private methods825.81%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected