90% svn-updater

Code Review | SVN Updater

WordPress plugin SVN Updater scored90%from 54 tests.

About plugin

  • Plugin page: svn-updater
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 28, 2015
  • Latest release: Jun 28, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: szepe.viktor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,160 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
Install script ran successfully

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

A check of server-side resources used by SVN Updater
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.92 ▼3.17
Dashboard /wp-admin3.32 ▲0.0244.47 ▼0.98
Posts /wp-admin/edit.php3.37 ▲0.0243.86 ▼6.20
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.85 ▼18.95
Media Library /wp-admin/upload.php3.24 ▲0.0235.12 ▼3.09

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

How much does this plugin use your filesystem and database?
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-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for SVN Updater
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.101.77 ▼0.3644.29 ▲0.68
Dashboard /wp-admin2,209 ▲245.86 ▲0.99119.81 ▲17.1451.92 ▲11.21
Posts /wp-admin/edit.php2,089 ▲212.01 ▼0.1234.75 ▼3.8933.24 ▼2.11
Add New Post /wp-admin/post-new.php1,514 ▼2817.41 ▼1.00686.77 ▲25.5755.65 ▼3.64
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.03107.72 ▼7.0445.60 ▼3.61

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: trunk, update, updater, svn, administration...

svn-updater/svn-updater.php Passed 13 tests

"SVN Updater" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
58 characters long description:
Install any WordPress.org plugin's trunk version from SVN.

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
There were no executable files found in this plugin95 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241164
Markdown122031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin