83% wp-admin-bar-mover

Code Review | WP Admin Bar Mover by Range Marketing

WordPress plugin WP Admin Bar Mover by Range Marketing scored83%from 54 tests.

About plugin

  • Plugin page: wp-admin-bar-mover
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 26, 2015
  • Latest release: May 27, 2015
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: rangemarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,576 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WP Admin Bar Mover by Range Marketing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.51 ▼19.35
Dashboard /wp-admin3.33 ▲0.0250.77 ▼4.43
Posts /wp-admin/edit.php3.38 ▲0.0251.14 ▼3.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.71 ▼8.04
Media Library /wp-admin/upload.php3.25 ▲0.0237.41 ▼2.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Admin Bar Mover by Range Marketing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4413.21 ▼1.171.77 ▼0.3640.24 ▼11.65
Dashboard /wp-admin2,212 ▲275.80 ▲0.92106.32 ▼7.3963.88 ▲22.33
Posts /wp-admin/edit.php2,104 ▲121.98 ▼0.0336.93 ▼6.4631.81 ▼6.38
Add New Post /wp-admin/post-new.php1,680 ▲14722.22 ▼0.93729.55 ▲54.8754.16 ▼3.21
Media Library /wp-admin/upload.php1,394 ▲34.25 ▼0.01105.12 ▼2.4374.74 ▲28.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-admin-bar-mover/rangemarketing-admin-bar-mover.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

wp-admin-bar-mover/rangemarketing-admin-bar-mover.php 85% from 13 tests

"WP Admin Bar Mover by Range Marketing" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-bar-mover.php" instead of "rangemarketing-admin-bar-mover.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 566 characters long)

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
Success! There were no dangerous files found in this plugin254 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS47136182
PHP1191572

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.65
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/range-logo.png31.91KB7.99KB▼ 74.97%
assets/transparent-range-logo.png2.22KB1.30KB▼ 41.37%