10% easymaintenance

Code Review | Easy Maintenance

WordPress plugin Easy Maintenance scored10%from 54 tests.

About plugin

  • Plugin page: easymaintenance
  • Plugin version: 1.9.10.2017
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: Oct 18, 2017
  • Latest release: Oct 18, 2017
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: smshafi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /5,708 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/easymaintenance/easy-maintainance.php+11
    Undefined index: easymaintenance

Server metrics [RAM: ▼1.93MB] [CPU: ▼56.31ms] Passed 4 tests

A check of server-side resources used by Easy Maintenance
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.37 ▼40.68
Dashboard /wp-admin2.07 ▼1.236.80 ▼44.10
Posts /wp-admin/edit.php2.07 ▼1.285.64 ▼44.58
Add New Post /wp-admin/post-new.php2.07 ▼3.816.02 ▼95.89
Media Library /wp-admin/upload.php2.07 ▼1.165.68 ▼30.02

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Maintenance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.38 ▲0.031.70 ▼0.3343.05 ▼0.63
Dashboard /wp-admin2,191 ▲145.57 ▼0.1090.52 ▼10.4883.26 ▲37.68
Posts /wp-admin/edit.php2,111 ▲141.99 ▼0.0233.38 ▼3.1632.84 ▼3.82
Add New Post /wp-admin/post-new.php1,536 ▲1023.52 ▲0.38655.31 ▼43.99102.48 ▲42.03
Media Library /wp-admin/upload.php1,402 ▲24.13 ▼0.08104.53 ▲0.5570.12 ▲23.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/easymaintenance/easy-maintainance.php+11
    Undefined index: easymaintenance
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 3× 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/easymaintenance/easy-maintainance.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/easymaintenance/settings.php:2
    • > PHP Notice
      Undefined index: easymaintenance in wp-content/plugins/easymaintenance/easy-maintainance.php on line 11

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: maintaince mood, will back soon, coming soon, maintaince, landing page

easymaintenance/easy-maintainance.php 85% from 13 tests

The principal PHP file in "Easy Maintenance" v. 1.9.10.2017 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easymaintenance.php" instead of "easy-maintainance.php")
  • Description: The description should be shorter than 140 characters (currently 147 characters long)

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
No dangerous file extensions were detected140 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213513140

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png52.02KB17.09KB▼ 67.15%
assets/images/development.png0.40KB0.47KB0.00%