84% maintenance-activator-elementor

Code Review | Maintenance Activator Elementor

WordPress plugin Maintenance Activator Elementor scored84%from 54 tests.

About plugin

  • Plugin page: maintenance-activ...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Apr 21, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: baswaniyash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /910 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.69ms] Passed 4 tests

This is a short check of server-side resources used by Maintenance Activator Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.59 ▼0.82
Dashboard /wp-admin3.32 ▲0.0145.14 ▼5.39
Posts /wp-admin/edit.php3.37 ▲0.0152.49 ▲2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.06 ▲3.21
Media Library /wp-admin/upload.php3.24 ▲0.0135.31 ▲0.82

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Maintenance Activator Elementor: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9413.24 ▼1.374.63 ▲2.5440.48 ▼3.12
Dashboard /wp-admin2,254 ▲995.80 ▲0.1698.89 ▼12.0341.93 ▼5.76
Posts /wp-admin/edit.php2,107 ▲152.00 ▼0.0235.09 ▼1.9032.48 ▼1.25
Add New Post /wp-admin/post-new.php1,535 ▼123.12 ▼0.10643.13 ▲61.6251.92 ▼6.00
Media Library /wp-admin/upload.php1,406 ▲184.15 ▼0.0893.60 ▲0.2541.86 ▲1.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maintenance-activator-elementor/inc/settings.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
3 plugin tags: maintenance dashboard, elementor maintenance mode, maintenance elementor

maintenance-activator-elementor/Maintenance-Activator-Elementor.php 92% from 13 tests

Analyzing the main PHP file in "Maintenance Activator Elementor" version 1.0.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("maintenance-activator-elementor.php" instead of "Maintenance-Activator-Elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin175 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22644132
CSS10043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were 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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin