94% client-dash-backup-buddy

Code Review | Client Dash - Backup Buddy

WordPress plugin Client Dash - Backup Buddy scored 94% from 54 tests.

About plugin

  • Plugin page: client-dash-backu...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.0
  • WordPress version: 5.9.2
  • First release: Jul 24, 2014
  • Latest release: Oct 21, 2014
  • Number of updates: 11
  • Update frequency: every 8.1 days
  • Top authors: bretterer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 15,472 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Client Dash - Backup Buddy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0259.73 ▼2.14
Dashboard /wp-admin3.42 ▲0.0135.29 ▼23.77
Posts /wp-admin/edit.php3.65 ▲0.0143.05 ▲2.02
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.11 ▼1,213.74
Media Library /wp-admin/upload.php3.31 ▲0.0137.86 ▲8.52

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: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Client Dash - Backup Buddy: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.12 ▼0.885.69 ▼0.052.27 ▼0.83
Dashboard /wp-admin2,912 ▲546.10 ▼0.09120.96 ▼20.49156.14 ▼5.23
Posts /wp-admin/edit.php2,708 ▲63.25 ▲0.0764.67 ▼31.64148.42 ▼7.84
Add New Post /wp-admin/post-new.php1,723 ▲1220.78 ▼0.17495.94 ▲50.76156.66 ▲1.11
Media Library /wp-admin/upload.php1,720 ▲225.56 ▲0.04147.06 ▲5.46194.61 ▲9.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require(wp-content/plugins/client-dash-backup-buddy/../backupbuddy/classes/core.php): failed to open stream: No such file or directory in wp-content/plugins/client-dash-backup-buddy/ajax.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/client-dash-backup-buddy/client-dash-backup-buddy.php:137
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/client-dash-backup-buddy/../backupbuddy/classes/core.php' (include_path='.:/usr/share/php') in wp-content/plugins/client-dash-backup-buddy/ajax.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'pb_backupbuddy' not found in wp-content/plugins/client-dash-backup-buddy/tab_content.php:6

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: webmaster, users, portal, client, dashboard...

client-dash-backup-buddy/client-dash-backup-buddy.php Passed 13 tests

The main PHP file in "Client Dash - Backup Buddy" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Backup buddy plugin for Client Dash

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 plugin247 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44283123
CSS1174110
JavaScript13114

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin