99% static-menus-inventivo

Code Review | Static menus | inventivo

WordPress plugin Static menus | inventivo scored 99% from 54 tests.

About plugin

  • Plugin page: static-menus-inve...
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 5.8.1
  • First release: Oct 30, 2018
  • Latest release: Aug 27, 2019
  • Number of updates: 15
  • Update frequency: every 21.4 days
  • Top authors: inventivode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 526 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼139.51ms] Passed 4 tests

Server-side resources used by Static menus | inventivo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0137.82 ▲3.19
Dashboard /wp-admin3.07 ▲0.0151.60 ▲2.34
Posts /wp-admin/edit.php3.12 ▲0.0150.88 ▼0.16
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.96 ▼560.49
Media Library /wp-admin/upload.php3.01 ▲0.0138.31 ▲0.27

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Static menus | inventivo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.70 ▼0.237.70 ▼3.9349.46 ▼3.89
Dashboard /wp-admin2,989 ▲585.92 ▼0.12146.62 ▼11.30117.55 ▼11.66
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0170.70 ▲0.4196.47 ▲0.50
Add New Post /wp-admin/post-new.php1,604 ▼7918.84 ▲0.11378.85 ▼15.51113.28 ▼6.04
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.00147.13 ▼17.40127.71 ▼1.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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

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 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: static menus, page speed

static-menus-inventivo/inventivo-static-menus.php 77% from 13 tests

The main file in "Static menus | inventivo" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("static-menus-inventivo.php" instead of "inventivo-static-menus.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin95 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1184144
Markdown127037
JSON10014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

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