93% maniacal-maze

Code Review | Maniacal Maze

WordPress plugin Maniacal Maze scored 93% from 53 tests.

About plugin

  • Plugin page: maniacal-maze
  • Plugin version: 3
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Aug 21, 2018
  • Latest release: Aug 25, 2018
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: ManiacalV (100%)

Code review

53 tests

User reviews

1 review

Install metrics

30+ active / 614 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼264.78ms] Passed 4 tests

An overview of server-side resources used by Maniacal Maze
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0433.31 ▼0.99
Dashboard /wp-admin3.09 ▲0.0340.07 ▼5.10
Posts /wp-admin/edit.php3.14 ▲0.0339.92 ▼7.35
Add New Post /wp-admin/post-new.php5.45 ▲0.0291.06 ▼1,038.27
Media Library /wp-admin/upload.php3.03 ▲0.0232.20 ▼8.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Maniacal Maze
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,680 ▲7416.35 ▲0.799.36 ▲1.7768.19 ▲21.67
Dashboard /wp-admin2,928 ▲785.90 ▲0.06129.14 ▼0.5599.31 ▲0.06
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0262.80 ▼1.4690.81 ▲8.81
Add New Post /wp-admin/post-new.php1,653 ▼20018.79 ▼0.31368.41 ▼25.82109.23 ▲4.70
Media Library /wp-admin/upload.php1,775 ▲35.00 ▼0.02156.43 ▲1.75110.84 ▼4.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maniacal-maze/maniacal-maze.php:51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/maniacal-maze/maze-master.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/maniacal-maze/maze-display.php:2

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version format is invalid
  • Requires php: Version format is invalid
You can take inspiration from this readme.txt

maniacal-maze/maniacal-maze.php 92% from 13 tests

"Maniacal Maze" version 3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "3")

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
Everything looks great! No dangerous files found in this plugin792 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP310379561
CSS204231

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity8.40
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin