Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.27MB] [CPU: ▼266.02ms] Passed 4 tests
Server-side resources used by Hosted Content Importer (HCI)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.36 | 36.11 ▲15.05 |
Dashboard /wp-admin | 3.36 ▲0.30 | 43.99 ▲1.71 |
Posts /wp-admin/edit.php | 3.41 ▲0.30 | 43.24 ▼10.01 |
Add New Post /wp-admin/post-new.php | 5.66 ▲0.23 | 90.79 ▼1,051.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.23 | 33.43 ▼3.77 |
With [third] Tags /wp-admin/edit.php?page=hci/class.hosted_content_shortcode.inc.php | 3.25 | 30.90 |
Server storage [IO: ▲0.09MB] [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: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Hosted Content Importer (HCI): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,693 ▲87 | 15.89 ▲0.35 | 8.51 ▼0.89 | 50.78 ▲2.36 |
Dashboard /wp-admin | 2,945 ▲92 | 5.88 ▲0.01 | 138.72 ▲9.68 | 104.13 ▲7.09 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 67.34 ▼0.47 | 88.92 ▼2.50 |
Add New Post /wp-admin/post-new.php | 1,570 ▼87 | 18.43 ▼0.40 | 340.48 ▼41.14 | 100.41 ▼12.11 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.02 ▲0.03 | 149.87 ▲7.59 | 115.97 ▼1.94 |
With [third] Tags /wp-admin/edit.php?page=hci/class.hosted_content_shortcode.inc.php | 1,580 | 2.19 | 81.37 | 79.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/hosted-content-importer/caches/index.php
- > /wp-content/plugins/hosted-content-importer/pages/report-shortcodes.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hosted-content-importer/classes/hci/class.hosted_content_shortcode.inc.php:10
- > PHP Fatal error
Uncaught Error: Class 'hosted_content_interface' not found in wp-content/plugins/hosted-content-importer/classes/processors/class.processor_wikipedia.inc.php:8
- > PHP Fatal error
Uncaught Error: Class 'hci_ymdhis' not found in wp-content/plugins/hosted-content-importer/pages/list-caches.php:2
- > PHP Warning
Use of undefined constant HCI_PLUGIN_DIR - assumed 'HCI_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hosted-content-importer/pages/list-processors.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'hosted_content_interface' not found in wp-content/plugins/hosted-content-importer/classes/processors/class.processor_code.inc.php:8
- > PHP Fatal error
Uncaught Error: Class 'hosted_content_interface' not found in wp-content/plugins/hosted-content-importer/classes/processors/class.processor_analytics.inc.php:10
- > PHP Fatal error
Uncaught Error: Class 'hosted_content_interface' not found in wp-content/plugins/hosted-content-importer/classes/processors/class.processor_none.inc.php:8
- > PHP Notice
Trying to get property 'posts' of non-object in wp-content/plugins/hosted-content-importer/pages/report-tags.php on line 10
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/hosted-content-importer/pages/report-tags.php:19
- > PHP Fatal error
Uncaught Error: Class 'hosted_content_interface' not found in wp-content/plugins/hosted-content-importer/classes/processors/class.processor_qr.inc.php:13
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
hosted-content-importer/hosted-content-importer.php Passed 13 tests
The main PHP script in "Hosted Content Importer (HCI)" version 3.0.3 is automatically included on every request by WordPress
99 characters long description:
Embeds third party contents within your blog. Usage: [third source="markdown" id="URL" section=""].
Code Analysis Passed 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
There were no executable files found in this plugin1,991 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 538 | 691 | 1,910 |
CSS | 3 | 14 | 8 | 66 |
JavaScript | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 230.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 3 | 18.75% |
Methods | 101 | |
▷ Static methods | 4 | 3.96% |
▷ Public methods | 39 | 38.61% |
▷ Protected methods | 61 | 60.40% |
▷ Private methods | 1 | 0.99% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tinymce/third.png | 2.93KB | 0.24KB | ▼ 91.96% |