89% keep-new-admin-menu-items-in-bottom

Code Review | Keep new admin menu items in bottom

WordPress plugin Keep new admin menu items in bottom scored89%from 54 tests.

About plugin

  • Plugin page: keep-new-admin-me...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Sep 30, 2023
  • Latest release: Sep 30, 2023
  • Number of updates: 9
  • Update frequency: every 12.9 days
  • Top authors: antonio24073 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /34 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.59ms] Passed 4 tests

An overview of server-side resources used by Keep new admin menu items in bottom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.56 ▼7.25
Dashboard /wp-admin3.32 ▲0.0144.15 ▼6.91
Posts /wp-admin/edit.php3.37 ▲0.0148.41 ▼1.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.07 ▲1.28
Media Library /wp-admin/upload.php3.24 ▲0.0134.22 ▼2.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Keep new admin menu items in bottom
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.74 ▼0.561.80 ▼0.6541.91 ▼8.45
Dashboard /wp-admin2,206 ▲215.83 ▼0.0399.37 ▼15.4441.60 ▼1.05
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0138.66 ▲3.7836.03 ▲2.07
Add New Post /wp-admin/post-new.php1,520 ▼1423.04 ▼0.21669.50 ▼18.2752.37 ▲0.68
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.0193.85 ▼18.9748.11 ▼0.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (New plugins will be below like the image) image not found
The official readme.txt is a good inspiration

keep-new-admin-menu-items-in-bottom/keep-new-admin-menu-items-in-bottom.php 92% from 13 tests

The entry point to "Keep new admin menu items in bottom" version 1.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2144758

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin