84% coming-soon-maintenance-mode-from-acurax

Code Review | Under Construction / Maintenance Mode from Acurax

WordPress plugin Under Construction / Maintenance Mode from Acurax scored 84% from 53 tests.

About plugin

  • Plugin page: coming-soon-maint...
  • Plugin version: 2.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.7.2
  • WordPress version: 5.8.1
  • First release: Jul 10, 2015
  • Latest release: May 28, 2021
  • Number of updates: 39
  • Update frequency: every 55.1 days
  • Top authors: Acurax (100%)

Code review

53 tests

User reviews

121 reviews

Install metrics

30,000+ active / 554,123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼262.71ms] Passed 4 tests

A check of server-side resources used by Under Construction / Maintenance Mode from Acurax
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.99 ▲0.2735.73 ▲15.86
Dashboard /wp-admin3.33 ▲0.2847.24 ▲10.17
Posts /wp-admin/edit.php3.38 ▲0.2750.22 ▲6.65
Add New Post /wp-admin/post-new.php5.60 ▲0.1893.45 ▼1,064.52
Media Library /wp-admin/upload.php3.18 ▲0.1837.50 ▼3.14
View All Subscribers /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Subscribers3.2538.22
Maintenance Mode /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings5.0468.49
Add-ons /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Add-ons3.2340.86
Misc /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Misc3.2448.83
Expert Support /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Expert-Support3.2540.67
Display Variables /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Variables3.2035.81
Help /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Help3.2033.73

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 122 new files
Database: no new tables, 16 new options
New WordPress options
acx_csma_custom_html_val
acx_csmap_open_all_boxes_default
acx_csma_version
acx_csma_favicon
acx_csma_start_date_time
acx_csma_ip_list
acx_csma_activation_status
acx_csma_appearence_array
acx_csma_auto_launch
acx_csma_meta_description
...

Browser metrics Passed 4 tests

Checking browser requirements for Under Construction / Maintenance Mode from Acurax
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,949 ▲34417.49 ▲2.008.82 ▼0.9848.23 ▼1.95
Dashboard /wp-admin3,224 ▲3747.97 ▲2.15155.61 ▲25.09114.75 ▲19.61
Posts /wp-admin/edit.php3,029 ▲3234.27 ▲1.5979.16 ▲11.29121.97 ▲31.89
Add New Post /wp-admin/post-new.php1,724 ▲6818.56 ▲0.27346.72 ▼62.36132.56 ▲8.37
Media Library /wp-admin/upload.php1,863 ▲914.77 ▼0.21118.07 ▼47.55137.16 ▲18.09
View All Subscribers /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Subscribers1,4853.8469.7579.89
Maintenance Mode /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Settings9,2415.09181.2694.83
Add-ons /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Add-ons1,5413.7269.4391.24
Misc /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Misc2,2747.70160.6276.04
Expert Support /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Expert-Support1,5793.5972.1987.97
Display Variables /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Variables1,7463.7667.8578.93
Help /wp-admin/admin.php?page=Acurax-Coming-Soon-Maintenance-Mode-Help1,3253.6167.9488.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 16 options
    • acx_csma_activation_status
    • acx_csma_display_var_arr
    • acx_csma_template
    • acx_csma_version
    • acx_csma_ip_list
    • acx_csma_meta_title
    • acx_csmap_open_all_boxes_default
    • acx_csma_auto_launch
    • acx_csma_meta_keywords
    • acx_csma_custom_html_val
    • ...

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/templates/0/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/templates/5/index.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/acx-csma-licence-activation.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/hook_functions.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/acx_csma_help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/templates/2/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/updates.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/defaults.php:410
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acx_csma_hook_function() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/acx_csma_admin.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/coming-soon-maintenance-mode-from-acurax/includes/acx_csma_subscribers.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: work in progress, maintenance mode, under construction, launching page, site offline...

coming-soon-maintenance-mode-from-acurax/acx_csma.php 92% from 13 tests

The primary PHP file in "Under Construction / Maintenance Mode from Acurax" version 2.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("coming-soon-maintenance-mode-from-acurax.php" instead of "acx_csma.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected25,292 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,0881,65912,902
CSS12217975,412
SVG3004,838
JavaScript3247342,140

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity43.75
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods113
▷ Static methods54.42%
▷ Public methods9079.65%
▷ Protected methods2320.35%
▷ Private methods00.00%
Functions136
▷ Named functions136100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
57 PNG files occupy 0.81MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/quick.png1.93KB1.63KB▼ 15.33%
templates/2/images/facebook.png2.88KB0.29KB▼ 90.05%
images/favicon.png0.65KB0.98KB0.00%
templates/4/images/close.png0.35KB0.23KB▼ 35.38%
images/addon_ua_demo.png34.96KB20.07KB▼ 42.58%