87% hiweb-adminmenu

Code Review | hiWeb AdmiMenu

WordPress plugin hiWeb AdmiMenu scored 87% from 54 tests.

About plugin

  • Plugin page: hiweb-adminmenu
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Nov 22, 2016
  • Latest release: Nov 22, 2016
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: Den Media (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 0 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.03MB] [CPU: ▼151.86ms] Passed 4 tests

Server-side resources used by hiWeb AdmiMenu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0326.87 ▲2.22
Dashboard /wp-admin3.09 ▲0.0333.87 ▼12.49
Posts /wp-admin/edit.php3.18 ▲0.0735.19 ▲2.29
Add New Post /wp-admin/post-new.php5.45 ▲0.0171.51 ▼590.00
Media Library /wp-admin/upload.php3.03 ▲0.0324.56 ▼7.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for hiWeb AdmiMenu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,769 ▲11816.47 ▲0.868.79 ▲2.9275.36 ▼1.69
Dashboard /wp-admin3,031 ▲1326.77 ▲0.76133.53 ▲4.31174.41 ▼0.20
Posts /wp-admin/edit.php2,843 ▲1033.80 ▲0.5779.54 ▲16.80148.20 ▲11.88
Add New Post /wp-admin/post-new.php2,373 ▼1,43416.29 ▼2.52431.94 ▼14.55161.49 ▼8.78
Media Library /wp-admin/upload.php1,852 ▲1006.21 ▲0.67161.19 ▲24.38187.68 ▲0.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/hiweb-adminmenu/parts/wp_ajax_hw_adminmenu_edit_item.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hiweb-adminmenu/hiweb-adminmenu.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Turn On Editor), #2 (Sort by Drag&Drop items), #3 (Hide Items)
  • Tags: You are using too many tags: 23 tag instead of maximum 10
  • Donate link: Invalid URI found ("")
The official readme.txt might help

hiweb-adminmenu/hiweb-adminmenu.php 92% from 13 tests

Analyzing the main PHP file in "hiWeb AdmiMenu" version 0.1
Please make the necessary changes and fix the following:
  • Version: The plugin version was not found

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
Good job! No executable or dangerous file extensions detected721 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45621312
Sass2137149
PHP32420134
CSS111126

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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
5 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png23.34KB12.07KB▼ 48.28%
img/cursor_drag_1.png1.58KB0.91KB▼ 42.50%
screenshot-2.png58.90KB24.31KB▼ 58.72%
img/cursor_drag_2.png1.36KB0.58KB▼ 57.20%
screenshot-1.png14.35KB7.97KB▼ 44.50%