84% baw-force-plugin-updates

Code Review | Force Plugin Updates

WordPress plugin Force Plugin Updates scored 84% from 54 tests.

About plugin

  • Plugin page: baw-force-plugin-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2014
  • Latest release: Aug 12, 2015
  • Number of updates: 9
  • Update frequency: every 54.3 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active / 8,437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Force Plugin Updates
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.38 ▲5.15
Dashboard /wp-admin3.31 ▲0.0147.47 ▼3.38
Posts /wp-admin/edit.php3.36 ▲0.0148.59 ▼0.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.00 ▼5.10
Media Library /wp-admin/upload.php3.24 ▲0.0137.33 ▲4.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Force Plugin Updates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.361.98 ▲0.2242.56 ▼0.30
Dashboard /wp-admin2,206 ▲185.86 ▼0.0498.39 ▼4.3338.75 ▼3.63
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0434.98 ▼3.9029.78 ▼2.65
Add New Post /wp-admin/post-new.php1,542 ▲618.27 ▼4.78595.74 ▼17.8468.38 ▲15.02
Media Library /wp-admin/upload.php1,385 ▼04.21 ▲0.0295.95 ▼11.2942.69 ▼2.33

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/baw-force-plugin-updates/baw-force-plugin-updates.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: updates, reinstall, plugins, install, security

baw-force-plugin-updates/baw-force-plugin-updates.php Passed 13 tests

The main file in "Force Plugin Updates" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
104 characters long description:
You may need to reinstall any of your plugins, juste check the plugins, select "Update", and that's all!

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
Everything looks great! No dangerous files found in this plugin37 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP152137

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
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 are no PNG files in this plugin