94% menuio

Code Review | Menuio

WordPress plugin Menuio scored 94% from 53 tests.

About plugin

  • Plugin page: menuio
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.7
  • WordPress version: 5.8.1
  • First release: Jun 21, 2018
  • Latest release: Jun 21, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: whitewolf550 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 326 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Menuio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1930.24 ▲7.61
Dashboard /wp-admin3.14 ▲0.0943.76 ▲0.24
Posts /wp-admin/edit.php3.19 ▲0.0842.75 ▲6.83
Add New Post /wp-admin/post-new.php5.50 ▲0.0791.75 ▼1,077.87
Media Library /wp-admin/upload.php3.08 ▲0.0832.92 ▼3.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Menuio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲9516.20 ▲0.698.67 ▼0.6154.31 ▲5.88
Dashboard /wp-admin2,976 ▲1236.14 ▲0.15134.01 ▼21.5694.87 ▼2.43
Posts /wp-admin/edit.php2,730 ▲242.69 ▲0.0064.01 ▼2.9588.95 ▼2.86
Add New Post /wp-admin/post-new.php1,870 ▲1919.06 ▲1.57361.16 ▲2.51104.86 ▼6.19
Media Library /wp-admin/upload.php1,796 ▲245.00 ▲0.03144.78 ▼14.80114.13 ▼9.93

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menuio/menuio.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (screenshot of administration), #2 (screenshot of posts with plugin activated)
You can take inspiration from this readme.txt

menuio/menuio.php Passed 13 tests

"Menuio" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Plugin for sharing posts to social sites

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin557 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP31712244
CSS131237
JavaScript111076

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
40 PNG files occupy 0.62MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/default-f.png1.74KB1.60KB▼ 8.30%
img/round2-p.png44.98KB15.04KB▼ 66.57%
img/brush-t.png2.35KB2.02KB▼ 14.13%
assets/Screenshot-1.png68.37KB15.36KB▼ 77.54%
img/default-i.png2.54KB2.19KB▼ 13.65%