84% easy-maintenance

Code Review | Easy Maintenance

WordPress plugin Easy Maintenance scored 84% from 54 tests.

About plugin

  • Plugin page: easy-maintenance
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Jul 18, 2016
  • Number of updates: 19
  • Update frequency: every 1.4 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Easy Maintenance
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.69 ▲4.00
Dashboard /wp-admin3.34 ▲0.0443.07 ▼6.35
Posts /wp-admin/edit.php3.39 ▲0.0347.64 ▼2.30
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.46 ▼11.91
Media Library /wp-admin/upload.php3.26 ▲0.0436.98 ▲4.86
Maintenance /wp-admin/options-general.php?page=maintenance3.2431.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Maintenance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲8313.88 ▼0.421.61 ▼0.4440.59 ▲0.11
Dashboard /wp-admin2,228 ▲435.95 ▲0.08103.53 ▼5.0839.98 ▼2.80
Posts /wp-admin/edit.php2,126 ▲342.63 ▲0.5945.23 ▲4.4834.42 ▼1.76
Add New Post /wp-admin/post-new.php1,537 ▲2323.82 ▲6.18680.43 ▲34.5256.60 ▼6.71
Media Library /wp-admin/upload.php1,416 ▲315.15 ▲0.90105.06 ▲9.6641.11 ▼1.27
Maintenance /wp-admin/options-general.php?page=maintenance9222.2935.2524.83

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance/includes/admin-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-maintenance/includes/restrict-access.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-maintenance/easy-maintenance.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Overview of the plugin settings without optional settings), #2 (Overview of the plugin settings with optional settings and datepicker)
The official readme.txt might help

easy-maintenance/easy-maintenance.php Passed 13 tests

"Easy Maintenance" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
A small and lightweight plugin build for simple maintenances.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected19,661 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33,9403,19819,282
PHP52210206
CSS111173

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png31.92KB18.31KB▼ 42.64%
screenshot-1.png12.36KB7.86KB▼ 36.45%