10% svn-auto-upgrade

Code Review | SVN Auto Upgrade

WordPress plugin SVN Auto Upgrade scored10%from 54 tests.

About plugin

  • Plugin page: svn-auto-upgrade
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2011
  • Latest release: Feb 26, 2012
  • Number of updates: 14
  • Update frequency: every 38.6 days
  • Top authors: peterchester (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,472 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/svn-auto-upgrade/svn-auto-upgrade.php+235
    Non-static method SVNAutoUpgrader::getInstance() should not be called statically

Server metrics [RAM: ▼1.90MB] [CPU: ▼51.66ms] Passed 4 tests

Analyzing server-side resources used by SVN Auto Upgrade
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.43 ▼38.43
Dashboard /wp-admin2.10 ▼1.206.20 ▼42.61
Posts /wp-admin/edit.php2.10 ▼1.256.99 ▼40.72
Add New Post /wp-admin/post-new.php2.10 ▼3.786.26 ▼84.87
Media Library /wp-admin/upload.php2.10 ▼1.136.00 ▼28.79

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SVN Auto Upgrade
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲6214.48 ▲0.122.06 ▲0.2641.57 ▼6.46
Dashboard /wp-admin2,203 ▲145.91 ▲0.98105.76 ▼14.8936.29 ▼7.68
Posts /wp-admin/edit.php2,086 ▼62.03 ▲0.0337.58 ▼1.3628.69 ▼8.31
Add New Post /wp-admin/post-new.php1,511 ▼2317.54 ▼5.66671.96 ▲44.3353.13 ▼1.95
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0896.24 ▼4.3938.21 ▼6.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/svn-auto-upgrade/svn-auto-upgrade.php+235
    Non-static method SVNAutoUpgrader::getInstance() should not be called statically
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/svn-auto-upgrade/svn-auto-upgrade.php:26

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: core, cache burst, upgrade, subversion, update...

svn-auto-upgrade/svn-auto-upgrade.php 92% from 13 tests

The main PHP script in "SVN Auto Upgrade" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 312 characters long)

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
Good job! No executable or dangerous file extensions detected145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22777145

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin