Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼139.41ms] Passed 4 tests
Server-side resources used by External Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 35.76 ▲1.84 |
Dashboard /wp-admin | 3.23 ▲0.17 | 46.90 ▲1.44 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 44.41 ▼1.07 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 91.76 ▼559.86 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 34.11 ▲3.90 |
All External Content /wp-admin/edit.php?post_type=external_content | 3.15 | 33.94 |
Add New /wp-admin/post-new.php?post_type=external_content | 3.21 | 45.59 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options |
---|
external_content_version |
Browser metrics Passed 4 tests
External Content: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 15.92 ▲0.32 | 9.44 ▼0.82 | 48.73 ▲3.99 |
Dashboard /wp-admin | 3,005 ▲71 | 5.96 ▼0.28 | 170.39 ▲5.80 | 108.61 ▼4.26 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.73 ▲0.00 | 70.19 ▲1.72 | 85.61 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,695 ▼2,007 | 18.81 ▲3.65 | 385.44 ▼86.78 | 103.82 ▲0.00 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.04 ▼0.01 | 150.58 ▼8.52 | 114.64 ▼5.27 |
All External Content /wp-admin/edit.php?post_type=external_content | 1,431 | 2.62 | 63.32 | 69.71 |
Add New /wp-admin/post-new.php?post_type=external_content | 2,941 | 8.90 | 227.53 | 137.64 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- external_content_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'tfrommen\\Autoloader\\Rule' not found in wp-content/plugins/external-content/inc/Autoloader/NamespaceRule.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: content, external, url
external-content/external-content.php 92% from 13 tests
The primary PHP file in "External Content" version 1.4.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin471 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 211 | 432 | 421 |
PO File | 1 | 18 | 20 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin