10% uninterrupted-backup

Code Review | Uninterrupted Backup

WordPress plugin Uninterrupted Backup scored10%from 54 tests.

About plugin

  • Plugin page: uninterrupted-backup
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5
  • WordPress version: 6.3.1
  • First release: Apr 5, 2013
  • Latest release: Apr 6, 2013
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: xpointer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /806 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/uninterrupted-backup/defines.inc.php+9
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.46ms] Passed 4 tests

Analyzing server-side resources used by Uninterrupted Backup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.37 ▼0.64
Dashboard /wp-admin3.31 ▼0.0449.23 ▼13.98
Posts /wp-admin/edit.php3.36 ▲0.0051.39 ▲0.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.62 ▼24.04
Media Library /wp-admin/upload.php3.23 ▲0.0039.51 ▲1.21

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Uninterrupted Backup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.21 ▼1.094.46 ▲2.4140.32 ▼2.80
Dashboard /wp-admin2,209 ▲184.87 ▼1.02100.34 ▼5.3439.82 ▼5.96
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0638.53 ▼2.3535.91 ▼2.44
Add New Post /wp-admin/post-new.php1,533 ▲523.18 ▲4.61654.69 ▼25.5860.00 ▼8.83
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.02102.78 ▼6.0148.36 ▼0.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/uninterrupted-backup/model/error/error.php
    • > /wp-content/plugins/uninterrupted-backup/uninterrupted-backup.php
    • > /wp-content/plugins/uninterrupted-backup/controller/setup/setup.php
    • > /wp-content/plugins/uninterrupted-backup/accesspoint/backup/backup.php
    • > /wp-content/plugins/uninterrupted-backup/accesspoint/error/error.php
    • > /wp-content/plugins/uninterrupted-backup/lib/response/response.php
    • > /wp-content/plugins/uninterrupted-backup/controller/backup/backup.php
    • > /wp-content/plugins/uninterrupted-backup/lib/mvc/controller/controller.php
    • > /wp-content/plugins/uninterrupted-backup/defines.inc.php
    • > /wp-content/plugins/uninterrupted-backup/lib/request/request.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/lib/request/request.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/defines.inc.php on line 12
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/lib/response/response.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/controller/error/error.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/accesspoint/setup/setup.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/lib/mvc/controller/controller.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/model/error/error.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/defines.inc.php on line 12
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/accesspoint/backup/backup.php on line 7
    • > PHP Warning
      Use of undefined constant NO_DIRECT_ACCESS_MSG - assumed 'NO_DIRECT_ACCESS_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/uninterrupted-backup/lib/classloader/classloader.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
  • Contributors: Contributors not specified
You can look at the official readme.txt

uninterrupted-backup/uninterrupted-backup.php Passed 13 tests

The entry point to "Uninterrupted Backup" version 0.1.2 is a PHP file that has certain tags in its header comment area
135 characters long description:
Detect fatal errors that might be produced by the installed active Plugins, provide secure backdoor for deactivating the target Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected416 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14102719416

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.54
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods43
▷ Static methods511.63%
▷ Public methods4297.67%
▷ Protected methods12.33%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants116.67%
▷ Class constants583.33%
▷ Public constants5100.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
There were not PNG files found in your plugin