10% backup-restore-divi-theme-options

Code Review | Backup/Restore Divi Theme Options

WordPress plugin Backup/Restore Divi Theme Options scored10%from 54 tests.

About plugin

  • Plugin page: backup-restore-di...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Apr 25, 2016
  • Number of updates: 9
  • Update frequency: every 17.1 days
  • Top authors: divispace (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /12,723 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/backup-restore-divi-theme-options/backup-restore-divi-theme-options.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; backup_restore_divi_theme_options has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.95ms] Passed 4 tests

A check of server-side resources used by Backup/Restore Divi Theme Options
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.87 ▼39.64
Dashboard /wp-admin2.09 ▼1.215.63 ▼39.88
Posts /wp-admin/edit.php2.09 ▼1.275.82 ▼37.79
Add New Post /wp-admin/post-new.php2.09 ▼3.806.12 ▼86.49
Media Library /wp-admin/upload.php2.09 ▼1.145.96 ▼30.67
Backup/Restore Theme Options /wp-admin/tools.php?page=backup-restore-divi-theme-options2.096.13

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Backup/Restore Divi Theme Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼1.271.69 ▼0.1144.35 ▼0.98
Dashboard /wp-admin2,213 ▲285.85 ▲0.0097.91 ▼4.6739.57 ▲0.25
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0236.40 ▲2.0733.67 ▼3.61
Add New Post /wp-admin/post-new.php1,539 ▲2023.16 ▲0.03593.25 ▼53.1855.48 ▼12.72
Media Library /wp-admin/upload.php1,386 ▲14.21 ▲0.0098.85 ▼8.2242.10 ▼2.25
Backup/Restore Theme Options /wp-admin/tools.php?page=backup-restore-divi-theme-options8352.0523.8636.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/backup-restore-divi-theme-options/backup-restore-divi-theme-options.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; backup_restore_divi_theme_options has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=backup-restore-divi-theme-options
    • > Deprecated in wp-content/plugins/backup-restore-divi-theme-options/backup-restore-divi-theme-options.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; backup_restore_divi_theme_options has a deprecated constructor
    • > GET request to /wp-admin/tools.php?page=backup-restore-divi-theme-options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=backup-restore-divi-theme-options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backup-restore-divi-theme-options/backup-restore-divi-theme-options.php:19

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Simple and easy to install), #2 (Even more simple to use)
Please take inspiration from this readme.txt

backup-restore-divi-theme-options/backup-restore-divi-theme-options.php Passed 13 tests

The entry point to "Backup/Restore Divi Theme Options" version 1.0.3 is a PHP file that has certain tags in its header comment area
41 characters long description:
Backup & Restore your Divi Theme Options.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin68 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191368

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 complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected