Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼177.59ms] Passed 4 tests
An overview of server-side resources used by Embed Code - Headers & Footers by DesignBombs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 35.41 ▲5.30 |
Dashboard /wp-admin | 3.20 ▲0.14 | 42.74 ▼22.65 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 42.37 ▼3.67 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.14 | 88.13 ▼687.11 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 34.65 ▲3.06 |
Embed Code /wp-admin/options-general.php?page=ec_options | 3.17 | 32.23 |
Server storage [IO: ▲2.81MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 372 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Embed Code - Headers & Footers by DesignBombs
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲149 | 16.06 ▲0.41 | 9.72 ▼1.55 | 43.48 ▼13.43 |
Dashboard /wp-admin | 3,007 ▲73 | 6.27 ▲0.04 | 155.68 ▼0.64 | 100.21 ▼37.92 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.73 ▲0.01 | 67.33 ▼1.90 | 91.18 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,776 ▼100 | 16.53 ▼2.66 | 390.74 ▲16.55 | 155.13 ▲48.90 |
Media Library /wp-admin/upload.php | 1,828 ▲21 | 5.05 ▲0.03 | 146.17 ▼10.06 | 111.67 ▼12.99 |
Embed Code /wp-admin/options-general.php?page=ec_options | 1,175 | 2.37 | 59.07 | 93.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
- 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller_Boxes' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Fields.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/embed-code/includes/vendor/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: header code, footer code, embed code, tracking code, embed javascript
embed-code/embed-code.php Passed 13 tests
Analyzing the main PHP file in "Embed Code - Headers & Footers by DesignBombs" version 2.0.4
103 characters long description:
The easiest way to embed code in the head or footer of your site, globally or on a per-page/post basis.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected47,495 lines of code in 224 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,787 | 17,890 | 31,582 |
PHP | 62 | 2,421 | 6,136 | 7,543 |
CSS | 15 | 1,181 | 1,177 | 5,143 |
JavaScript | 9 | 372 | 483 | 1,337 |
Sass | 15 | 291 | 25 | 1,330 |
Markdown | 3 | 191 | 0 | 560 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 19.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 8 | 11.76% |
▷ Concrete classes | 60 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 536 | |
▷ Static methods | 81 | 15.11% |
▷ Public methods | 440 | 82.09% |
▷ Protected methods | 93 | 17.35% |
▷ Private methods | 3 | 0.56% |
Functions | 51 | |
▷ Named functions | 51 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendor/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/vendor/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/vendor/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/vendor/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/vendor/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |