64% backup-release-ovh

Code Review | Backup release ovh

WordPress plugin Backup release ovh scored64%from 54 tests.

About plugin

  • Plugin page: backup-release-ovh
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2012
  • Latest release: Apr 4, 2012
  • Number of updates: 7
  • Update frequency: every 18.7 days
  • Top authors: Eoxia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,825 total downloads

Benchmarks

Plugin footprint 48% 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: ▼1.47MB] [CPU: ▼43.66ms] Passed 4 tests

This is a short check of server-side resources used by Backup release ovh
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.52 ▼0.9410.77 ▼29.53
Dashboard /wp-admin2.54 ▼0.7613.05 ▼35.81
Posts /wp-admin/edit.php2.55 ▼0.8115.81 ▼31.41
Add New Post /wp-admin/post-new.php2.54 ▼3.3514.44 ▼77.89
Media Library /wp-admin/upload.php2.55 ▼0.6814.50 ▼18.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 57 new files
Database: 3 new tables, 7 new options
New tables
wp_eobu__history
wp_eobu__domain
wp_eobu__calendar
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
eobu_db_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Backup release ovh
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲13413.59 ▼1.031.77 ▼0.1138.29 ▼5.01
Dashboard /wp-admin2,278 ▲1075.64 ▲0.70116.86 ▼1.4943.69 ▼5.07
Posts /wp-admin/edit.php2,160 ▲712.59 ▲0.5847.01 ▲9.2340.55 ▲5.54
Add New Post /wp-admin/post-new.php1,563 ▲2923.69 ▲0.50670.40 ▼16.1336.84 ▼14.90
Media Library /wp-admin/upload.php1,457 ▲724.80 ▲0.60105.42 ▲1.9844.45 ▼1.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method eobu_init::plugin_load() should not be called statically
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_eobu__history
    • wp_eobu__calendar
    • wp_eobu__domain
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • eobu_db_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 4095× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35
    • > PHP Warning
      readdir() expects parameter 1 to be resource, bool given in wp-content/plugins/backup-release-ovh/include/config.php on line 35

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Page de configuration du plugin (Partie 1 / 3)), #2 (Page de configuration du plugin (Partie 2 / 3)), #3 (Page de configuration du plugin (Partie 3 / 3)), #4 (Page de présentation des domaines présents sur le serveur avec l'url vers le site et le type de site (uniquement wordpress et magento en version 0.1)), #5 (Interface pour la configuration des domaines), #6 (Interface d'édition de la configuration pour un domaine spécifique), #7 (Interface de listing des sauvegardes effectuées pour le domaine sélectionné), #8 (Interface de listing des restaurations effectuées pour le domaine sélectionné), #9 (Résumé des sauvegardes effectuées le jour même)
Please take inspiration from this readme.txt

backup-release-ovh/backup_release_ovh.php 92% from 13 tests

The principal PHP file in "Backup release ovh" v. 0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("backup-release-ovh.php" instead of "backup_release_ovh.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin4,446 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP164058482,691
JavaScript32026586
PO File1246359497
CSS25450427
Bourne Shell25229245

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity52.86
▷ Minimum class complexity11.00
▷ Maximum class complexity103.00
Average method complexity6.26
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods69100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
25 compressed PNG files occupy 0.49MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
medias/jquery_pics/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
medias/jquery_pics/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
medias/jquery_pics/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
medias/jquery_pics/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
medias/jquery_pics/ui-bg_glass_55_fbf9ee_1x400.png0.14KB0.14KB0.00%