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 gracefully, with no errors
Server metrics [RAM: ▲0.54MB] [CPU: ▼284.08ms] Passed 4 tests
An overview of server-side resources used by XCloner Google Drive
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.57 | 58.06 ▲5.46 |
Dashboard /wp-admin | 3.98 ▲0.57 | 36.37 ▲4.74 |
Posts /wp-admin/edit.php | 4.20 ▲0.56 | 40.49 ▲3.51 |
Add New Post /wp-admin/post-new.php | 7.45 ▲0.48 | 95.89 ▼1,144.96 |
Media Library /wp-admin/upload.php | 3.85 ▲0.56 | 27.23 ▲0.39 |
Server storage [IO: ▲3.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 578 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for XCloner Google Drive
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,767 ▲12 | 15.82 ▲0.18 | 5.76 ▼0.56 | 2.19 ▼0.53 |
Dashboard /wp-admin | 2,892 ▲31 | 6.22 ▲0.06 | 131.95 ▼3.71 | 165.17 ▲3.64 |
Posts /wp-admin/edit.php | 2,695 ▲4 | 3.23 ▼0.01 | 64.31 ▲1.26 | 140.02 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,670 ▲9 | 20.73 ▲4.19 | 408.44 ▲4.97 | 157.79 ▲1.20 |
Media Library /wp-admin/upload.php | 1,694 ▼4 | 5.56 ▲0.06 | 134.96 ▼4.36 | 185.20 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/xcloner-google-drive/public/partials/xcloner-google-drive-public-display.php
- > /wp-content/plugins/xcloner-google-drive/admin/partials/xcloner-google-drive-admin-display.php
- 276× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Cached\\Storage\\AbstractCache' not found in wp-content/plugins/xcloner-google-drive/vendor/league/flysystem-cached-adapter/src/Storage/Adapter.php:8
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Cached\\Storage\\AbstractCache' not found in wp-content/plugins/xcloner-google-drive/vendor/league/flysystem-cached-adapter/src/Storage/Memory.php:5
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\AdapterInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/league/flysystem-cached-adapter/src/CachedAdapter.php:8
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\Cached\\CacheInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/league/flysystem-cached-adapter/src/Storage/AbstractCache.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
Uncaught Error: Interface 'League\\Flysystem\\FilesystemInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/league/flysystem/src/Filesystem.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/xcloner-google-drive/vendor/google/auth/src/OAuth2.php:36
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/xcloner-google-drive/vendor/google/apiclient-services/src/Google/Service/Drive.php:32
- > PHP Fatal error
Uncaught Error: Class 'Google_Exception' not found in wp-content/plugins/xcloner-google-drive/vendor/google/apiclient/src/Google/Task/Exception.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (General Settings) image missing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== xcloner-google-drive ===
)
xcloner-google-drive/xcloner-google-drive.php Passed 13 tests
Analyzing the main PHP file in "XCloner Google Drive" version 1.0.6
81 characters long description:
Google Drive Remote Storage Implementation for XCloner Backup and Restore plugin.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin76,436 lines of code in 539 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 463 | 9,885 | 31,758 | 69,180 |
Markdown | 34 | 1,561 | 0 | 4,765 |
JSON | 25 | 0 | 0 | 2,220 |
YAML | 6 | 13 | 0 | 136 |
XML | 4 | 0 | 0 | 107 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
JavaScript | 2 | 4 | 54 | 6 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 2 | 0 | 8 | 0 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 632.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 40 | |
Traits | 17 | |
Classes | 366 | |
▷ Abstract classes | 14 | 3.83% |
▷ Concrete classes | 352 | 96.17% |
▷ Final classes | 18 | 5.11% |
Methods | 3,691 | |
▷ Static methods | 220 | 5.96% |
▷ Public methods | 3,172 | 85.94% |
▷ Protected methods | 234 | 6.34% |
▷ Private methods | 285 | 7.72% |
Functions | 200 | |
▷ Named functions | 78 | 39.00% |
▷ Anonymous functions | 122 | 61.00% |
Constants | 466 | |
▷ Global constants | 66 | 14.16% |
▷ Class constants | 400 | 85.84% |
▷ Public constants | 400 | 100.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
1 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 80.03KB | 23.69KB | ▼ 70.39% |