10% baw-better-plugin-managment

Code Review | Better Plugin Management

WordPress plugin Better Plugin Management scored10%from 54 tests.

About plugin

  • Plugin page: baw-better-plugin...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jun 9, 2014
  • Latest release: Aug 10, 2015
  • Number of updates: 5
  • Update frequency: every 92.6 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,634 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Compile error in wp-content/plugins/baw-better-plugin-managment/baw-better-plugin-managment.php+30
    Cannot use $this as parameter

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

Server-side resources used by Better Plugin Management
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.50 ▼7.12
Dashboard /wp-admin3.31 ▲0.0045.50 ▼5.94
Posts /wp-admin/edit.php3.36 ▲0.0043.97 ▼2.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.99 ▼0.42
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▼3.29

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Better Plugin Management
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.843.99 ▲2.1438.47 ▼3.26
Dashboard /wp-admin2,206 ▲155.85 ▲0.99101.10 ▼0.0441.85 ▲1.18
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0038.36 ▲1.6134.82 ▲1.96
Add New Post /wp-admin/post-new.php1,542 ▲918.33 ▼4.68658.28 ▲20.4550.29 ▼2.39
Media Library /wp-admin/upload.php1,388 ▲64.15 ▼0.0396.88 ▼0.2539.78 ▼3.79

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Cannot use $this as parameter in wp-content/plugins/baw-better-plugin-managment/baw-better-plugin-managment.php on line 30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

baw-better-plugin-managment/baw-better-plugin-managment.php Passed 13 tests

Analyzing the main PHP file in "Better Plugin Management" version 1.3
102 characters long description:
2 new tabs "Recently Updated" and "Recently Deleted" + automatically deactivate plugins to be deleted.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin348 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15148324
PO File12224

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.74
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity29.00
▷ Minimum method complexity5.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
There were not PNG files found in your plugin