68% wp-float-admin-menu

Code Review | WP Float Admin Menu

WordPress plugin WP Float Admin Menu scored68%from 54 tests.

About plugin

  • Plugin page: wp-float-admin-menu
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Jul 14, 2014
  • Number of updates: 21
  • Update frequency: every 1.0 days
  • Top authors: rockaja (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,813 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼37.44ms] Passed 4 tests

A check of server-side resources used by WP Float Admin Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0534.70 ▼8.30
Dashboard /wp-admin3.01 ▼0.3425.43 ▼35.26
Posts /wp-admin/edit.php3.01 ▼0.3526.07 ▼23.46
Add New Post /wp-admin/post-new.php3.01 ▼2.8826.72 ▼78.02
Media Library /wp-admin/upload.php3.01 ▼0.2223.98 ▼13.02
WP float menu /wp-admin/themes.php?page=wp-float-menu3.1626.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

WP Float Admin Menu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,684 ▼10214.70 ▲0.551.41 ▼0.7343.06 ▼0.62
Dashboard /wp-admin2,363 ▲1835.71 ▲0.09105.55 ▲12.0646.95 ▼0.53
Posts /wp-admin/edit.php2,253 ▲1562.26 ▲0.2845.75 ▲8.3635.34 ▼1.06
Add New Post /wp-admin/post-new.php1,536 ▲123.27 ▲5.10671.92 ▲6.6437.62 ▼38.22
Media Library /wp-admin/upload.php1,559 ▲1594.33 ▲0.14104.81 ▼2.9243.13 ▼3.07
WP float menu /wp-admin/themes.php?page=wp-float-menu1,1953.8896.7842.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=wp-float-menu
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/themes.php?page=wp-float-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=wp-float-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-float-admin-menu/wp-float-admin-menu.php

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 issues were 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-float-admin-menu === )
The official readme.txt is a good inspiration

wp-float-admin-menu/wp-float-admin-menu.php Passed 13 tests

Analyzing the main PHP file in "WP Float Admin Menu" version 2.0.1
128 characters long description:
Re-positions your wordpress admin menu from the side to the top. Have a less cluttered admin area for you or your clients to use

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2232189
CSS117667
JavaScript126150

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.11
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin