Benchmarks
Plugin footprint 82% from 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.56MB] [CPU: ▲4.07ms] Passed 4 tests
A check of server-side resources used by Backup and Staging by WP Time Capsule
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 37.76 ▼4.88 |
Dashboard /wp-admin | 4.02 ▲0.67 | 55.68 ▼4.55 |
Posts /wp-admin/edit.php | 4.07 ▲0.71 | 60.52 ▲11.58 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.67 | 132.65 ▲25.05 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 50.35 ▲14.11 |
Settings /wp-admin/admin.php?page=wp-time-capsule-settings | 4.10 | 63.23 |
Backups /wp-admin/admin.php?page=wp-time-capsule-monitor | 3.95 | 50.26 |
Initial Setup /wp-admin/admin.php?page=wp-time-capsule | 3.95 | 51.50 |
Activity Log /wp-admin/admin.php?page=wp-time-capsule-activity | 3.88 | 41.30 |
Server storage [IO: ▲30.12MB] [DB: ▲0.02MB] 33% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Illegal file modification found: 1 file (0.98KB) outside of "wp-content/plugins/wp-time-capsule/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/0-mu-wp-time-capsule.php
- The filesystem usage should be lower than 25MB (currently using 30.12MB)
Filesystem: 2,225 new files
Database: 8 new tables, 7 new options
New tables |
---|
wp_wptc_inc_exc_contents |
wp_wptc_activity_log |
wp_wptc_processed_iterator |
wp_wptc_processed_files |
wp_wptc_backups |
wp_wptc_options |
wp_wptc_current_process |
wp_wptc_processed_restored_files |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
is_wptc_activation_redirected |
Browser metrics Passed 4 tests
Backup and Staging by WP Time Capsule: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲104 | 13.69 ▼0.66 | 2.02 ▼0.34 | 42.64 ▲0.83 |
Dashboard /wp-admin | 2,256 ▲71 | 5.02 ▼0.85 | 121.10 ▲16.18 | 44.38 ▲1.00 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.12 ▲0.12 | 41.89 ▲6.61 | 32.96 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,549 ▲30 | 23.10 ▼0.31 | 687.52 ▼4.01 | 68.01 ▲10.91 |
Media Library /wp-admin/upload.php | 1,429 ▲44 | 4.36 ▲0.15 | 105.64 ▼6.53 | 42.18 ▼7.31 |
Settings /wp-admin/admin.php?page=wp-time-capsule-settings | 964 | 2.87 | 49.23 | 44.37 |
Backups /wp-admin/admin.php?page=wp-time-capsule-monitor | 964 | 2.98 | 44.22 | 31.10 |
Initial Setup /wp-admin/admin.php?page=wp-time-capsule | 963 | 2.99 | 40.03 | 28.17 |
Activity Log /wp-admin/admin.php?page=wp-time-capsule-activity | 984 | 2.00 | 32.69 | 27.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-time-capsule/S3/mtdowlingwptc/jmespath.php/bin/jp.php
- > /wp-content/plugins/wp-time-capsule/Pro/Staging/Views/wptc-staging-options.php
- > /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/index.php
- > /wp-content/plugins/wp-time-capsule/Pro/Staging/bridge/bridge.php
- > /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/wptc-copy.php
- > /wp-content/plugins/wp-time-capsule/wp-tcapsule-bridge/wptc-ajax.php
- 734× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Plugin\\Backoff\\AbstractBackoffStrategy' not found in wp-content/plugins/wp-time-capsule/S3_BWC/aws/aws-sdk-php/src/AwsWPTC/S3/IncompleteMultipartUploadChecker.php:27
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\Collection' not found in wp-content/plugins/wp-time-capsule/S3_BWC/guzzle/guzzle/src/Guzzle/Service/Resource/Model.php:11
- > PHP Fatal error
Uncaught Error: Class 'AwsWPTC\\S3\\Exception\\S3Exception' not found in wp-content/plugins/wp-time-capsule/S3_BWC/aws/aws-sdk-php/src/AwsWPTC/S3/Exception/NotImplementedException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'AwsWPTC\\Crypto\\MetadataStrategyInterface' not found in wp-content/plugins/wp-time-capsule/S3/awswptc/aws-sdk-php/src/S3/Crypto/InstructionFileMetadataStrategy.php:20
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Http\\Exception\\BadResponseException' not found in wp-content/plugins/wp-time-capsule/S3_BWC/guzzle/guzzle/src/Guzzle/Http/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught PharException: internal corruption of phar "wp-content/plugins/wp-time-capsule/S3_BWC/guzzle/guzzle/phar-stub.php" (truncated manifest at stub end) in wp-content/plugins/wp-time-capsule/S3_BWC/guzzle/guzzle/phar-stub.php:3
- > PHP Fatal error
Uncaught Error: Class 'AwsWPTC\\S3\\Exception\\S3Exception' not found in wp-content/plugins/wp-time-capsule/S3_BWC/aws/aws-sdk-php/src/AwsWPTC/S3/Exception/InvalidAddressingHeaderException.php:22
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-time-capsule/Classes/ActivityLog.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'AwsWPTC\\S3\\Model\\MultipartUpload\\AbstractTransfer' not found in wp-content/plugins/wp-time-capsule/S3_BWC/aws/aws-sdk-php/src/AwsWPTC/S3/Model/MultipartUpload/ParallelTransfer.php:28
- > PHP Fatal error
Uncaught Error: Class 'AwsWPTC\\S3\\Exception\\S3Exception' not found in wp-content/plugins/wp-time-capsule/S3_BWC/aws/aws-sdk-php/src/AwsWPTC/S3/Exception/NoSuchBucketPolicyException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: Please reduce the number of tags, currently 69 tag instead of maximum 10
wp-time-capsule/wp-time-capsule.php 92% from 13 tests
The main PHP file in "Backup and Staging by WP Time Capsule" ver. 1.22.18 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 202 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin208,751 lines of code in 2,148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,923 | 30,075 | 62,520 | 156,572 |
JavaScript | 77 | 5,665 | 4,600 | 30,671 |
CSS | 17 | 596 | 451 | 6,180 |
SVG | 21 | 1 | 9 | 5,650 |
Markdown | 24 | 1,498 | 0 | 4,942 |
JSON | 40 | 14 | 0 | 2,229 |
reStructuredText | 31 | 1,271 | 1,823 | 1,883 |
XML | 4 | 29 | 11 | 212 |
make | 2 | 28 | 5 | 133 |
YAML | 5 | 28 | 0 | 101 |
HTML | 2 | 16 | 0 | 95 |
Python | 1 | 22 | 23 | 49 |
Ant | 1 | 10 | 1 | 34 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 149)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 700.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 149.00 |
Code structure | ||
---|---|---|
Namespaces | 168 | |
Interfaces | 114 | |
Traits | 18 | |
Classes | 1,258 | |
▷ Abstract classes | 50 | 3.97% |
▷ Concrete classes | 1,208 | 96.03% |
▷ Final classes | 26 | 2.15% |
Methods | 10,255 | |
▷ Static methods | 631 | 6.15% |
▷ Public methods | 8,268 | 80.62% |
▷ Protected methods | 583 | 5.69% |
▷ Private methods | 1,404 | 13.69% |
Functions | 905 | |
▷ Named functions | 535 | 59.12% |
▷ Anonymous functions | 370 | 40.88% |
Constants | 1,093 | |
▷ Global constants | 507 | 46.39% |
▷ Class constants | 586 | 53.61% |
▷ Public constants | 586 | 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
27 PNG files occupy 0.30MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fullcalendar-2.0.2/lib/cupertino/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png | 0.38KB | 0.17KB | ▼ 54.43% |
fullcalendar-2.0.2/lib/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png | 0.35KB | 0.20KB | ▼ 44.60% |
fullcalendar-2.0.2/lib/cupertino/images/ui-bg_highlight-soft_100_deedf7_1x100.png | 0.43KB | 0.21KB | ▼ 51.94% |
fullcalendar-2.0.2/lib/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.29KB | 0.17KB | ▼ 42.00% |
images/icon-16x16.png | 0.65KB | 0.54KB | ▼ 17.94% |