90% move-to-trash-from-admin-bar

Code Review | Move to Trash from Admin Bar

WordPress plugin Move to Trash from Admin Bar scored90%from 54 tests.

About plugin

  • Plugin page: move-to-trash-fro...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Feb 19, 2017
  • Latest release: Nov 10, 2017
  • Number of updates: 6
  • Update frequency: every 43.8 days
  • Top authors: arroba (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,802 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.12ms] Passed 4 tests

Server-side resources used by Move to Trash from Admin Bar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.15 ▼0.50
Dashboard /wp-admin3.31 ▲0.0049.05 ▼2.89
Posts /wp-admin/edit.php3.36 ▲0.0045.56 ▼4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.53 ▼12.27
Media Library /wp-admin/upload.php3.23 ▲0.0037.37 ▲1.72

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: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Move to Trash from Admin Bar
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.68 ▼0.694.97 ▲3.0144.45 ▲3.36
Dashboard /wp-admin2,203 ▲155.88 ▲1.01120.36 ▲16.7238.39 ▼9.55
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0038.13 ▲1.9635.20 ▼0.02
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▲2.10672.96 ▲57.6254.32 ▲0.47
Media Library /wp-admin/upload.php1,391 ▲64.25 ▼0.00103.44 ▲0.7945.78 ▲2.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP 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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: delete, button, move, pages, admin...

move-to-trash-from-admin-bar/move-to-trash-from-admin-bar.php Passed 13 tests

The entry point to "Move to Trash from Admin Bar" version 1.0.1 is a PHP file that has certain tags in its header comment area
81 characters long description:
Add a Move to Trash Button to delete posts or pages from the WordPress Admin Bar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181824

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin