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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼133.83ms] Passed 4 tests
This is a short check of server-side resources used by Rackspace CloudFiles CDN
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.31 | 37.93 ▲16.41 |
Dashboard /wp-admin | 3.23 ▲0.17 | 52.39 ▲10.49 |
Posts /wp-admin/edit.php | 3.29 ▲0.17 | 45.34 ▲14.10 |
Add New Post /wp-admin/post-new.php | 5.51 ▲0.07 | 90.76 ▼562.06 |
Media Library /wp-admin/upload.php | 3.10 ▲0.09 | 32.63 ▲2.17 |
Server storage [IO: ▲21.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 769 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Rackspace CloudFiles CDN
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,026 ▲431 | 17.87 ▲2.29 | 11.38 ▲1.47 | 46.92 ▲0.00 |
Dashboard /wp-admin | 3,182 ▲251 | 8.04 ▲1.92 | 156.59 ▲15.00 | 109.95 ▼1.24 |
Posts /wp-admin/edit.php | 2,993 ▲254 | 4.24 ▲1.52 | 80.58 ▲15.14 | 94.61 ▼4.88 |
Add New Post /wp-admin/post-new.php | 1,632 ▲28 | 21.28 ▲2.42 | 251.18 ▼118.63 | 123.43 ▲18.52 |
Media Library /wp-admin/upload.php | 1,845 ▲35 | 4.82 ▼0.21 | 111.96 ▼34.31 | 117.21 ▼3.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/rackspace-cloudfiles-cdn/rackspace-cloudfiles-cdn.php
- > /wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/smoketest.php
- 106× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\LoadBalancer\\Resources\\SubResource' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/LoadBalancer/Resources/HealthMonitor.php:8
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\Common\\Base' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/Common/Metadata.php:21
- > PHP Notice
Undefined index: NOVA_URL in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/smoketest.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\LoadBalancer\\Resources\\Readonly' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/LoadBalancer/Resources/Stats.php:8
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\CloudMonitoring\\Exception\\CloudMonitoringException' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/CloudMonitoring/Exception/EntityException.php:5
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\Common\\PersistentObject' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/Compute/Network.php:25
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\ObjectStore\\ObjectStoreBase' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/ObjectStore/Service.php:30
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\LoadBalancer\\Resources\\SubResource' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/LoadBalancer/Resources/ContentCaching.php:10
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\Common\\PersistentObject' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/DNS/AsyncResponse.php:22
- > PHP Fatal error
Uncaught Error: Class 'OpenCloud\\Common\ova' not found in wp-content/plugins/rackspace-cloudfiles-cdn/lib/php-opencloud-1.5.10/lib/OpenCloud/Volume/Service.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Beautifully simple management), #2 (Example output in content)
rackspace-cloudfiles-cdn/rackspace-cloudfiles-cdn.php Passed 13 tests
This is the main PHP file of "Rackspace CloudFiles CDN" version 0.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
56 characters long description:
A plugin that moves attachments to Rackspace Cloudfiles.
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
There were no executable files found in this plugin204,855 lines of code in 483 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 213 | 1,562 | 0 | 165,927 |
XML | 2 | 196 | 0 | 19,484 |
JavaScript | 12 | 1,837 | 1,929 | 8,180 |
PHP | 216 | 2,036 | 5,016 | 7,622 |
Markdown | 33 | 1,150 | 0 | 2,875 |
CSS | 3 | 99 | 67 | 719 |
JSON | 1 | 1 | 0 | 24 |
Bourne Shell | 2 | 7 | 11 | 15 |
YAML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 3.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 206 | |
▷ Abstract classes | 9 | 4.37% |
▷ Concrete classes | 197 | 95.63% |
▷ Final classes | 0 | 0.00% |
Methods | 553 | |
▷ Static methods | 15 | 2.71% |
▷ Public methods | 501 | 90.60% |
▷ Protected methods | 31 | 5.61% |
▷ Private methods | 21 | 3.80% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 99 | |
▷ Global constants | 85 | 85.86% |
▷ Class constants | 14 | 14.14% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
38 PNG files occupy 0.35MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/php-opencloud-1.5.10/docs/api/images/icons/arrow_down.png | 0.59KB | 0.58KB | ▼ 2.15% |
lib/php-opencloud-1.5.10/docs/api/css/black-tie/images/ui-icons_4ca300_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/php-opencloud-1.5.10/docs/api/images/background.png | 0.81KB | 0.72KB | ▼ 10.17% |
lib/php-opencloud-1.5.10/docs/api/css/black-tie/images/ui-bg_flat_65_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/php-opencloud-1.5.10/docs/api/images/icons/ok.png | 3.60KB | 0.90KB | ▼ 74.95% |