83% force-update-check-for-plugins-and-themes

Code Review | Force Update Check for Plugins and Themes

WordPress plugin Force Update Check for Plugins and Themes scored83%from 54 tests.

About plugin

  • Plugin page: force-update-chec...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Dec 17, 2022
  • Number of updates: 11
  • Update frequency: every 63.0 days
  • Top authors: aspengrovestudios (81.82%)annaqq (27.27%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,870 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.00MB] [CPU: ▼6.70ms] Passed 4 tests

Server-side resources used by Force Update Check for Plugins and Themes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.81 ▲3.86
Dashboard /wp-admin3.32 ▼0.0344.07 ▼15.06
Posts /wp-admin/edit.php3.37 ▲0.0147.46 ▲1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.97 ▼8.92
Media Library /wp-admin/upload.php3.24 ▲0.0132.15 ▼3.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Force Update Check for Plugins and Themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.40 ▼0.381.98 ▲0.3039.15 ▼0.33
Dashboard /wp-admin2,206 ▲154.85 ▼1.0695.58 ▼5.7837.32 ▼6.04
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.1640.63 ▲6.1235.94 ▲1.54
Add New Post /wp-admin/post-new.php1,514 ▼517.64 ▼5.39600.89 ▼84.2848.83 ▼23.19
Media Library /wp-admin/upload.php1,382 ▼94.14 ▼0.1098.72 ▼0.9042.65 ▼0.68

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/force-update-check-for-plugins-and-themes/ags-force-updates.php:42

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)
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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

force-update-check-for-plugins-and-themes/ags-force-updates.php 85% from 13 tests

The main PHP file in "Force Update Check for Plugins and Themes" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("force-update-check-for-plugins-and-themes.php" instead of "ags-force-updates.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1213235

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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