84% wp-theme-update

Code Review | WP Theme Update

WordPress plugin WP Theme Update scored 84% 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: 6.3.1
  • 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

10+ active / 1,727 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼3.03ms] Passed 4 tests

An overview of server-side resources used by WP Theme Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0638.23 ▼8.81
Dashboard /wp-admin3.33 ▲0.0348.35 ▲1.96
Posts /wp-admin/edit.php3.38 ▲0.0344.83 ▲1.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.78 ▼6.74
Media Library /wp-admin/upload.php3.25 ▲0.0335.76 ▲1.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Theme Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.101.99 ▼0.1337.34 ▼6.67
Dashboard /wp-admin2,206 ▲154.85 ▼0.04107.46 ▲3.7941.28 ▼4.36
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0435.93 ▼3.2632.18 ▼1.21
Add New Post /wp-admin/post-new.php1,533 ▼123.42 ▲0.40578.08 ▼117.4650.77 ▼5.37
Media Library /wp-admin/upload.php1,388 ▲34.20 ▲0.0195.78 ▼8.6641.64 ▼4.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-update/wp-theme-update.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-theme-update/example/update.example.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 require attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

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

The primary PHP file in "WP Theme Update" version 1.1.0 is used by WordPress to initiate all plugin functionality
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
No dangerous file extensions were detected161 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP28666161

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin