90% auto-update-themes

Code Review | Auto Update Themes

WordPress plugin Auto Update Themes scored90%from 54 tests.

About plugin

  • Plugin page: auto-update-themes
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6
  • WordPress version: 6.3.1
  • First release: Mar 31, 2015
  • Latest release: Aug 17, 2016
  • Number of updates: 18
  • Update frequency: every 28.1 days
  • Top authors: Geenyous (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.81ms] Passed 4 tests

Server-side resources used by Auto Update Themes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.12 ▼5.73
Dashboard /wp-admin3.31 ▲0.0146.67 ▼8.98
Posts /wp-admin/edit.php3.36 ▲0.0050.07 ▲1.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.85 ▼5.29
Media Library /wp-admin/upload.php3.23 ▲0.0034.55 ▼3.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Update Themes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▼0.101.96 ▲0.0846.33 ▲3.09
Dashboard /wp-admin2,206 ▲185.86 ▲0.98109.74 ▲2.7639.18 ▼12.09
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0139.56 ▲2.3935.67 ▲0.49
Add New Post /wp-admin/post-new.php1,533 ▼522.64 ▼0.52650.86 ▼14.4849.29 ▼6.51
Media Library /wp-admin/upload.php1,382 ▼64.19 ▲0.00100.12 ▼5.1946.02 ▼2.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
The SRP test was a success

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: update, themes, automatic, plugin, theme...

auto-update-themes/auto-update-themes.php Passed 13 tests

"Auto Update Themes" version 0.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
44 characters long description:
This plugin turns on auto update for themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1362210

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin