90% native-maintenance

Code Review | Native Maintenance

WordPress plugin Native Maintenance scored 90% from 54 tests.

About plugin

  • Plugin page: native-maintenance
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2023
  • Latest release: Jun 15, 2023
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: dhmskrn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 70 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.15MB] [CPU: ▼11.41ms] Passed 4 tests

Server-side resources used by Native Maintenance
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6317.20 ▼23.34
Dashboard /wp-admin3.31 ▲0.0147.08 ▲1.43
Posts /wp-admin/edit.php3.36 ▲0.0043.72 ▼4.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.58 ▼19.15
Media Library /wp-admin/upload.php3.23 ▲0.0035.64 ▲2.65

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Native Maintenance
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,453 ▼30414.48 ▲0.070.54 ▼1.4114.65 ▼31.23
Dashboard /wp-admin2,209 ▲214.89 ▼1.08105.06 ▼1.9641.12 ▲1.93
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0435.98 ▼4.5235.36 ▼1.78
Add New Post /wp-admin/post-new.php1,519 ▼2323.19 ▲5.10582.34 ▼40.6062.60 ▲10.35
Media Library /wp-admin/upload.php1,382 ▼04.18 ▼0.0495.62 ▼4.8544.15 ▼0.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: coming soon, maintenance mode, maintenance, coming soon page, under construction

native-maintenance/native-maintenance.php Passed 13 tests

The primary PHP file in "Native Maintenance" version 1.0.0 is used by WordPress to initiate all plugin functionality
79 characters long description:
A super simple maintenance mode plugin using native maintenance mode WordPress.

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

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 were not PNG files found in your plugin