Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼33.54ms] Passed 4 tests
Analyzing server-side resources used by ConoHa Object Sync
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 46.04 ▲0.24 |
Dashboard /wp-admin | 3.29 ▼0.02 | 28.54 ▼33.87 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 26.77 ▼19.96 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 28.59 ▼68.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 25.21 ▼11.73 |
ConoHa Object Sync /wp-admin/options-general.php?page=conoha-object-sync/conoha-ojs-sync.php | 3.29 | 24.62 |
Server storage [IO: ▲4.98MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 1,411 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
conohaojs-servicename |
conohaojs-auth-url |
db_upgraded |
conohaojs-region |
can_compress_scripts |
widget_recent-comments |
conohaojs-delobject |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for ConoHa Object Sync
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.11 | 1.54 ▼0.24 | 43.55 ▼2.67 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▼0.02 | 84.20 ▼15.95 | 38.61 ▼1.19 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.05 | 34.20 ▼10.49 | 36.17 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.11 ▲0.04 | 592.71 ▼43.48 | 47.54 ▼20.18 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.24 ▲0.06 | 102.56 ▼1.74 | 43.41 ▼0.15 |
ConoHa Object Sync /wp-admin/options-general.php?page=conoha-object-sync/conoha-ojs-sync.php | 1,002 | 2.02 | 24.34 | 35.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- conohaojs-servicename
- conohaojs-region
- conohaojs-auth-url
- theysaidso_admin_options
- conohaojs-delobject
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=conoha-object-sync/conoha-ojs-sync.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
- 1090× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/conoha-object-sync/vendor/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryAggregator/DuplicateAggregatorTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\LoadBalancer\\Resource\\AbstractResource' not found in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/lib/OpenCloud/LoadBalancer/Resource/ContentCaching.php:31
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/tests/OpenCloud/Tests/Common/Log/LoggerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/conoha-object-sync/vendor/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCanCacheStrategyTest.php:12
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/Networking/create-security-group.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Tests\\GuzzleTestCase' not found in wp-content/plugins/conoha-object-sync/vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/CollectionTest.php:12
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/ObjectStore/cleanup.php on line 18
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/samples/Compute/detach_volume.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\CloudMonitoring\\Resource\\ReadOnlyResource' not found in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/lib/OpenCloud/CloudMonitoring/Resource/AgentConnection.php:23
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\Smoke\\Unit\\AbstractUnit' not found in wp-content/plugins/conoha-object-sync/vendor/rackspace/php-opencloud/tests/OpenCloud/Smoke/Unit/DNS.php:22
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Edit settings through the 'Settings' menu as you like.)
conoha-object-sync/conoha-ojs-sync.php 85% from 13 tests
The main PHP script in "ConoHa Object Sync" version 0.2.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("conoha-object-sync.php" instead of "conoha-ojs-sync.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected68,472 lines of code in 1,227 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,087 | 13,366 | 30,552 | 58,312 |
Markdown | 79 | 2,691 | 0 | 7,335 |
JSON | 43 | 73 | 0 | 1,920 |
YAML | 6 | 60 | 0 | 373 |
XML | 6 | 36 | 12 | 266 |
JavaScript | 2 | 18 | 39 | 130 |
PO File | 1 | 25 | 16 | 80 |
Ant | 1 | 10 | 1 | 34 |
Bourne Shell | 1 | 6 | 2 | 17 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 4.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 194 | |
Interfaces | 85 | |
Traits | 2 | |
Classes | 923 | |
▷ Abstract classes | 47 | 5.09% |
▷ Concrete classes | 876 | 94.91% |
▷ Final classes | 2 | 0.23% |
Methods | 5,986 | |
▷ Static methods | 232 | 3.88% |
▷ Public methods | 5,497 | 91.83% |
▷ Protected methods | 383 | 6.40% |
▷ Private methods | 106 | 1.77% |
Functions | 198 | |
▷ Named functions | 24 | 12.12% |
▷ Anonymous functions | 174 | 87.88% |
Constants | 417 | |
▷ Global constants | 3 | 0.72% |
▷ Class constants | 414 | 99.28% |
▷ Public constants | 414 | 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.21MB with 0.14MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 219.06KB | 71.98KB | ▼ 67.14% |