64% ithemes-sync

Code Review | Solid Central – Site Management, Backups, Security, and Reporting

WordPress plugin Solid Central – Site Management, Backups, Security, and Reporting scored64%from 54 tests.

About plugin

  • Plugin page: ithemes-sync
  • Plugin version: 3.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Jun 2, 2017
  • Latest release: Nov 7, 2023
  • Number of updates: 57
  • Update frequency: every 41.2 days
  • Top authors: layotte (45.61%)oakesjosh (31.58%)ithemes (22.81%)bitmachina (5.26%)Otto42 (3.51%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50,000+ active /1,156,476 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.67MB] [CPU: ▲6.27ms] Passed 4 tests

Server-side resources used by Solid Central – Site Management, Backups, Security, and Reporting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5052.78 ▲8.80
Dashboard /wp-admin4.03 ▲0.7258.96 ▲4.98
Posts /wp-admin/edit.php4.08 ▲0.7256.22 ▲6.86
Add New Post /wp-admin/post-new.php6.61 ▲0.7297.53 ▲4.43
Media Library /wp-admin/upload.php3.95 ▲0.7250.96 ▲15.24
Solid Central /wp-admin/options-general.php?page=solid-central3.9844.38
SolidWP Licensing /wp-admin/options-general.php?page=ithemes-licensing4.1543.85

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 110 new files
Database: no new tables, 8 new options
New WordPress options
ithemes-sync-dashboard-metaboxes
widget_theysaidso_widget
ithemes-sync-admin_menu
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Solid Central – Site Management, Backups, Security, and Reporting
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10014.22 ▼0.291.90 ▲0.2032.68 ▼11.81
Dashboard /wp-admin2,267 ▲895.52 ▼0.1491.66 ▼22.6242.62 ▼2.99
Posts /wp-admin/edit.php2,180 ▲801.99 ▲0.0337.31 ▲0.5434.71 ▼1.04
Add New Post /wp-admin/post-new.php1,548 ▲2223.58 ▲0.35711.24 ▲54.3055.45 ▼0.42
Media Library /wp-admin/upload.php1,475 ▲754.34 ▲0.1499.53 ▼6.7846.22 ▼0.31
Solid Central /wp-admin/options-general.php?page=solid-central8332.0123.4026.90
SolidWP Licensing /wp-admin/options-general.php?page=ithemes-licensing1,0001.8126.9934.10

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
    • > Warning in wp-content/plugins/ithemes-sync/load.php+64
    require_once(wp-content/plugins/ithemes-sync/notice-handler.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 82× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(/load-translations.php): failed to open stream: No such file or directory in wp-content/plugins/ithemes-sync/notice-handler.php on line 14
    • > PHP Notice
      Undefined index: ithemes_sync_path in wp-content/plugins/ithemes-sync/admin.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Ithemes_Sync_Verb' not found in wp-content/plugins/ithemes-sync/verbs/update-google-site-verification-token.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ithemes-sync/load.php:15
    • > PHP Fatal error
      require_once(): Failed opening required '/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ithemes-sync/lib/updater/settings-page.php on line 32
    • > PHP Fatal error
      Uncaught Error: Class 'Ithemes_Sync_Verb' not found in wp-content/plugins/ithemes-sync/verbs/update-show-sync.php:14
    • > PHP Fatal error
      require_once(): Failed opening required '/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/ithemes-sync/settings-page.php on line 34
    • > PHP Warning
      require_once(/load-translations.php): failed to open stream: No such file or directory in wp-content/plugins/ithemes-sync/request-handler.php on line 37
    • > PHP Fatal error
      Uncaught Error: Class 'Ithemes_Sync_Verb' not found in wp-content/plugins/ithemes-sync/verbs/get-status.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Ithemes_Sync_Verb' not found in wp-content/plugins/ithemes-sync/verbs/deauthenticate-user.php:14

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 Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: manage updates, report dashboard, manage multiple websites, backup, security

ithemes-sync/init.php 85% from 13 tests

"Solid Central – Site Management, Backups, Security, and Reporting" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ithemes-sync.php" instead of "init.php")
  • Domain Path: The domain path points to an invalid folder, "/lang/" does not exist

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
It is important to fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/ithemes-sync/ca/roots.crt
      • wp-content/plugins/ithemes-sync/lib/updater/ca/roots.crt
9,559 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PHP792,7441,8568,296
CSS511391,005
SVG200126
JavaScript417173
Markdown118033
YAML103326

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.77
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity4.28
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes73
▷ Abstract classes00.00%
▷ Concrete classes73100.00%
▷ Final classes22.74%
Methods462
▷ Static methods11124.03%
▷ Public methods30866.67%
▷ Protected methods20.43%
▷ Private methods15232.90%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/updater/images/icon-licensed.png0.74KB0.93KB0.00%
lib/updater/images/icon-unrecognized.png0.63KB0.40KB▼ 36.65%
images/sync-icon.png1.13KB0.71KB▼ 37.46%
lib/updater/images/ithemes-logo-header.png3.83KB2.37KB▼ 38.28%
lib/updater/images/icon-settings.png0.45KB0.58KB0.00%