90% wp-maintenance-developer

Code Review | WordPress Maintenance Developer

WordPress plugin WordPress Maintenance Developer scored90%from 54 tests.

About plugin

  • Plugin page: wp-maintenance-de...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2015
  • Latest release: Jan 25, 2017
  • Number of updates: 24
  • Update frequency: every 19.7 days
  • Top authors: miguelmuller (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /14,686 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.22ms] Passed 4 tests

A check of server-side resources used by WordPress Maintenance Developer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.83 ▲1.69
Dashboard /wp-admin3.39 ▲0.0953.72 ▲2.32
Posts /wp-admin/edit.php3.50 ▲0.1554.78 ▲2.27
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.75 ▼13.22
Media Library /wp-admin/upload.php3.31 ▲0.0841.55 ▲0.37
Maintenance mode /wp-admin/tools.php?page=page-wp-maintenance-developer3.2837.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
maintenance_settings
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Maintenance Developer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.66 ▼1.101.65 ▼0.3339.67 ▼2.94
Dashboard /wp-admin2,213 ▲255.84 ▲0.95113.23 ▲8.6539.85 ▼6.77
Posts /wp-admin/edit.php2,093 ▲12.01 ▼0.1239.81 ▼15.8233.63 ▼13.29
Add New Post /wp-admin/post-new.php1,522 ▲323.09 ▲0.28666.26 ▼5.0654.79 ▼1.01
Media Library /wp-admin/upload.php1,395 ▲74.24 ▲0.0097.36 ▼22.0541.88 ▼4.57
Maintenance mode /wp-admin/tools.php?page=page-wp-maintenance-developer9672.0323.8634.60

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-maintenance-developer/wp-maintenance-developer.php Passed 13 tests

Analyzing the main PHP file in "WordPress Maintenance Developer" version 1.2.1
111 characters long description:
Add a page that prevents your site's content view. Ideal to report a scheduled maintenance or coming soon page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin415 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP479106340
PO File1263075

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin