84% site-manager

Code Review | Auto Updater

WordPress plugin Auto Updater scored 84% from 54 tests.

About plugin

  • Plugin page: site-manager
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.3
  • WordPress version: 5.9.2
  • First release: Mar 20, 2014
  • Latest release: Nov 12, 2019
  • Number of updates: 30
  • Update frequency: every 69.0 days
  • Top authors: 1and1 (66.67%)markoheijnen (36.67%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active / 56,601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼290.29ms] Passed 4 tests

Server-side resources used by Auto Updater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1151.45 ▼1.62
Dashboard /wp-admin3.62 ▲0.2232.27 ▼0.30
Posts /wp-admin/edit.php3.85 ▲0.2138.84 ▲2.41
Add New Post /wp-admin/post-new.php7.09 ▲0.1298.76 ▼1,155.60
Media Library /wp-admin/upload.php3.51 ▲0.2126.72 ▼3.63
Settings /wp-admin/edit.php?post_type=update_log&page=site-manager3.5624.11
Changelog /wp-admin/edit.php?post_type=update_log3.6228.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
site-manager

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Updater
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲4015.89 ▲0.306.59 ▲0.892.24 ▼0.45
Dashboard /wp-admin2,923 ▲626.10 ▼0.00117.35 ▼12.22156.69 ▲0.85
Posts /wp-admin/edit.php2,719 ▲343.23 ▼0.0165.34 ▲1.40147.68 ▲7.37
Add New Post /wp-admin/post-new.php1,681 ▼916.52 ▼4.05409.04 ▼39.18157.94 ▲6.56
Media Library /wp-admin/upload.php1,726 ▲255.48 ▼0.05159.07 ▲12.31184.59 ▼2.65
Settings /wp-admin/edit.php?post_type=update_log&page=site-manager1,0652.4253.98109.41
Changelog /wp-admin/edit.php?post_type=update_log1,4243.1762.11111.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
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • site-manager

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/site-manager/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: install, automatic, changelog, upgrade, autoupdate...

site-manager/sitemanager.php 85% from 13 tests

The entry point to "Auto Updater" version 1.1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("site-manager.php" instead of "sitemanager.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
There were no executable files found in this plugin845 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP620693728
CSS213105
JavaScript12012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity23.60
▷ Minimum class complexity10.00
▷ Maximum class complexity39.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods54
▷ Static methods814.81%
▷ Public methods4990.74%
▷ Protected methods00.00%
▷ Private methods59.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png0.33KB0.25KB▼ 26.02%