84% force-plugin-updates-check

Code Review | Force Plugin Updates Check

WordPress plugin Force Plugin Updates Check scored84%from 54 tests.

About plugin

  • Plugin page: force-plugin-upda...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Feb 11, 2014
  • Latest release: Dec 15, 2017
  • Number of updates: 7
  • Update frequency: every 252.1 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

800+ active /13,756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Force Plugin Updates Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.57 ▲7.43
Dashboard /wp-admin3.32 ▲0.0147.23 ▼6.88
Posts /wp-admin/edit.php3.37 ▲0.0153.29 ▲1.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.04 ▲0.25
Media Library /wp-admin/upload.php3.24 ▲0.0138.24 ▲6.91

Server storage [IO: ▲0.00MB] [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
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Force Plugin Updates Check: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.75 ▲0.371.76 ▲0.0242.49 ▼2.96
Dashboard /wp-admin2,203 ▲365.66 ▲0.0787.57 ▼27.7439.70 ▼10.85
Posts /wp-admin/edit.php2,105 ▲22.01 ▼0.0440.83 ▼0.4536.10 ▼3.27
Add New Post /wp-admin/post-new.php1,560 ▲1218.34 ▼4.88679.54 ▲6.7657.10 ▲2.12
Media Library /wp-admin/upload.php1,408 ▲84.26 ▲0.06109.30 ▼4.6648.47 ▲4.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/force-plugin-updates-check/force-plugin-updates-check.php:52

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: update, plugins

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

"Force Plugin Updates Check" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Adds a link to the toolbar that allows site admins to force WordPress to run a check for plugin updates

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1152338
Markdown1102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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
PNG images were not found in this plugin