89% admin-menu-in-frontend

Code Review | Admin Menu in Frontend

WordPress plugin Admin Menu in Frontend scored89%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: 6.3.1
  • 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

30+ active /2,166 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.10ms] Passed 4 tests

An overview of server-side resources used by Admin Menu in Frontend
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.41 ▼2.66
Dashboard /wp-admin3.33 ▲0.0244.56 ▼6.33
Posts /wp-admin/edit.php3.38 ▲0.0247.56 ▲1.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.42 ▲6.50
Media Library /wp-admin/upload.php3.25 ▲0.0236.94 ▲3.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Admin Menu in Frontend: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.094.69 ▲2.6443.58 ▼0.17
Dashboard /wp-admin2,209 ▲185.86 ▼0.2095.92 ▼17.2339.67 ▼7.87
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0539.35 ▲3.0334.07 ▼4.06
Add New Post /wp-admin/post-new.php1,520 ▲123.32 ▼0.08646.08 ▼28.7762.51 ▲5.08
Media Library /wp-admin/upload.php1,385 ▼04.23 ▼0.02104.70 ▼7.5548.59 ▲1.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #1 in admin-menu-in-frontend/assets to your readme.txt
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,168 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for 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
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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%