99% admin-menu-in-frontend

Code Review | Admin Menu in Frontend

WordPress plugin Admin Menu in Frontend scored 99% from 54 tests.

About plugin

  • Plugin page: admin-menu-in-fro...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 5.9.2
  • First release: Oct 12, 2017
  • Latest release: Dec 14, 2017
  • Number of updates: 8
  • Update frequency: every 7.9 days
  • Top authors: kostyatereshchuk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,810 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼445.97ms] Passed 4 tests

A check of server-side resources used by Admin Menu in Frontend
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1055.74 ▲4.31
Dashboard /wp-admin3.48 ▲0.0731.48 ▼2.29
Posts /wp-admin/edit.php3.70 ▲0.0736.72 ▼0.67
Add New Post /wp-admin/post-new.php6.95 ▼0.02105.52 ▼1,773.28
Media Library /wp-admin/upload.php3.36 ▲0.0524.24 ▼7.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Menu in Frontend
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,773 ▲4616.28 ▲0.235.82 ▼0.082.31 ▼0.21
Dashboard /wp-admin2,895 ▲346.10 ▼0.07120.41 ▼15.34157.61 ▲1.91
Posts /wp-admin/edit.php2,694 ▲63.35 ▲0.1166.86 ▲1.31142.41 ▼1.75
Add New Post /wp-admin/post-new.php1,661 ▼5517.12 ▼4.83425.57 ▼26.63156.65 ▼2.47
Media Library /wp-admin/upload.php1,698 ▼05.54 ▲0.01139.85 ▼4.61185.29 ▼11.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please describe screenshot #1 in admin-menu-in-frontend/assets to your readme.txt
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

admin-menu-in-frontend/admin-menu-in-frontend.php Passed 13 tests

Analyzing the main PHP file in "Admin Menu in Frontend" version 1.1.1
44 characters long description:
Allows to show admin menu when viewing site.

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 plugin1,168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS110222734
PHP16570244
JavaScript13012190

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.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
1 PNG file occupies 0.19MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png190.00KB78.40KB▼ 58.74%