10% wp-maintenance-vek

Code Review | WP Maintenance-vek

WordPress plugin WP Maintenance-vek scored 10% from 54 tests.

About plugin

  • Plugin page: wp-maintenance-vek
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Apr 16, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 48
  • Update frequency: every 4.9 days
  • Top authors: veks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,213 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-maintenance-vek/Wp_Maintenance_vek.php+36
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.19MB] [CPU: ▼5.14ms] Passed 4 tests

This is a short check of server-side resources used by WP Maintenance-vek
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2038.05 ▼2.38
Dashboard /wp-admin3.50 ▲0.1945.38 ▼5.41
Posts /wp-admin/edit.php3.61 ▲0.2547.94 ▼2.34
Add New Post /wp-admin/post-new.php6.08 ▲0.1983.21 ▼10.41
Media Library /wp-admin/upload.php3.42 ▲0.1936.62 ▲4.16

Server storage [IO: ▲4.36MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/wp-maintenance-vek/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/wp-maintenance-vek/assets/img/\320\227\320\260\320\263\320\276\320\273\320\276\320\262\320\276\320\272 \320\277\321\200\320\276\320\265\320\272\321\202\320\260.gif"
Filesystem: 66 new files
Database: 1 new table, 7 new options
New tables
wp_db_vek_subscriber_email
New WordPress options
theysaidso_admin_options
db_vek
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Maintenance-vek
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.29 ▼1.011.83 ▼0.0940.49 ▼7.24
Dashboard /wp-admin2,219 ▲315.80 ▼0.10103.82 ▲2.5439.71 ▼8.47
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0440.31 ▲3.2836.77 ▲1.75
Add New Post /wp-admin/post-new.php1,546 ▲2623.45 ▲0.15667.87 ▲2.4065.77 ▲9.55
Media Library /wp-admin/upload.php1,407 ▲164.23 ▲0.0291.97 ▼8.2544.32 ▼3.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WP_Maintenance_vek::Plugin_deactivation() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/wp-maintenance-vek/includes/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/js/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/img/index.php
    • > /wp-content/plugins/wp-maintenance-vek/index.php
    • > /wp-content/plugins/wp-maintenance-vek/languages/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/js/datetimepicker-master/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/fonts/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/css/skins/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/js/jquery.noty/index.php
    • > /wp-content/plugins/wp-maintenance-vek/assets/css/datetimepicker-master/index.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-maintenance-vek/Wp_Maintenance_vek.php:23
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-maintenance-vek/includes/home.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-maintenance-vek/includes/admin.php:6

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: customize page, countdown timer, maintenance, administration, login

wp-maintenance-vek/Wp_Maintenance_vek.php 92% from 13 tests

The principal PHP file in "WP Maintenance-vek" v. 0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-maintenance-vek.php" instead of "Wp_Maintenance_vek.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected21,422 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS1476510214,505
JavaScript149803504,817
PHP4611091,018
SVG200853
PO File197149229

PHP code Passed 2 tests

This is a short overview 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.26
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin