99% maximum-width-container

Code Review | Max width container

WordPress plugin Max width container scored 99% from 54 tests.

About plugin

  • Plugin page: maximum-width-con...
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 5.8.1
  • First release: Mar 14, 2019
  • Latest release: Aug 16, 2019
  • Number of updates: 10
  • Update frequency: every 15.6 days
  • Top authors: visualsuperhero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,029 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼153.13ms] Passed 4 tests

This is a short check of server-side resources used by Max width container
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0226.97 ▼7.92
Dashboard /wp-admin3.07 ▲0.0142.32 ▲0.26
Posts /wp-admin/edit.php3.12 ▲0.0137.93 ▼5.72
Add New Post /wp-admin/post-new.php5.42 ▼0.0180.74 ▼589.19
Media Library /wp-admin/upload.php3.01 ▲0.0126.40 ▼9.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Max width container
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12915.84 ▲0.1312.13 ▲2.4046.77 ▼1.36
Dashboard /wp-admin2,967 ▲336.07 ▼0.01138.71 ▼13.68115.60 ▲4.49
Posts /wp-admin/edit.php2,736 ▼32.72 ▲0.0157.43 ▼4.7487.41 ▼12.32
Add New Post /wp-admin/post-new.php1,680 ▲18018.85 ▲0.34387.26 ▼28.77122.48 ▲3.83
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.01147.73 ▲1.43115.17 ▼11.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

maximum-width-container/max-width-container.php 92% from 13 tests

Analyzing the main PHP file in "Max width container" version 1.1
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("maximum-width-container.php" instead of "max-width-container.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin69 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10044
PHP11822
CSS1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin