94% wp-theme-update

Code Review | WP Theme Update

WordPress plugin WP Theme Update scored 94% from 54 tests.

About plugin

  • Plugin page: wp-theme-update
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.9.5
  • WordPress version: 5.9.2
  • First release: Jan 17, 2014
  • Latest release: May 14, 2018
  • Number of updates: 10
  • Update frequency: every 157.9 days
  • Top authors: rafacesar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,540 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼298.79ms] Passed 4 tests

An overview of server-side resources used by WP Theme Update
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0757.67 ▲8.03
Dashboard /wp-admin3.46 ▲0.0533.05 ▲0.75
Posts /wp-admin/edit.php3.69 ▲0.0436.10 ▼2.50
Add New Post /wp-admin/post-new.php6.91 ▼0.0691.29 ▼1,193.16
Media Library /wp-admin/upload.php3.34 ▲0.0425.53 ▼0.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Theme Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲4115.89 ▼0.145.69 ▼0.382.32 ▲0.12
Dashboard /wp-admin2,888 ▲336.16 ▼0.00115.64 ▼18.79150.71 ▼15.96
Posts /wp-admin/edit.php2,688 ▼03.24 ▼0.0062.66 ▼1.10138.68 ▼5.37
Add New Post /wp-admin/post-new.php1,661 ▼5817.74 ▲0.40420.20 ▼8.67155.06 ▼2.17
Media Library /wp-admin/upload.php1,695 ▼35.50 ▼0.05146.89 ▲2.50186.26 ▼4.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-theme-update/example/update.example.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-update/wp-theme-update.php:11

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

wp-theme-update/wp-theme-update.php Passed 13 tests

Analyzing the main PHP file in "WP Theme Update" version 1.1.0
52 characters long description:
This plugin helps to make a theme easier upgradable.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin161 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin