Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.80MB] [CPU: ▲16.05ms] Passed 4 tests
An overview of server-side resources used by Woody code snippets - Insert Header Footer Code, AdSense Ads
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.18 ▲1.72 | 60.87 ▲18.04 |
Dashboard /wp-admin | 6.47 ▲3.17 | 76.67 ▲21.15 |
Posts /wp-admin/edit.php | 6.52 ▲3.17 | 80.12 ▲26.64 |
Add New Post /wp-admin/post-new.php | 9.03 ▲3.15 | 110.34 ▼1.62 |
Media Library /wp-admin/upload.php | 6.38 ▲3.15 | 70.07 ▲29.34 |
Settings /wp-admin/edit.php?post_type=wbcr-snippets&page=settings-wbcr_insert_php | 7.21 | 63.71 |
+ Add snippet /wp-admin/edit.php?post_type=wbcr-snippets&page=new-item-wbcr_insert_php | 6.36 | 62.74 |
About /wp-admin/edit.php?post_type=wbcr-snippets&page=about-wbcr_insert_php | 6.31 | 58.03 |
Snippets library /wp-admin/edit.php?post_type=wbcr-snippets&page=snippet-library-wbcr_insert_php | 6.30 | 57.13 |
Tags /wp-admin/edit-tags.php?taxonomy=wbcr-snippet-tags&post_type=wbcr-snippets | 6.39 | 66.58 |
License /wp-admin/edit.php?post_type=wbcr-snippets&page=license-wbcr_insert_php | 6.30 | 59.98 |
Snippets /wp-admin/edit.php?post_type=wbcr-snippets | 6.54 | 68.00 |
Import/Export /wp-admin/edit.php?post_type=wbcr-snippets&page=import-wbcr_insert_php | 6.30 | 57.69 |
Server storage [IO: ▲4.14MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 450 new files
Database: no new tables, 21 new options
New WordPress options |
---|
widget_recent-posts |
wbcr_inp_code_editor_highlight_selection_matches |
wbcr_inp_code_editor_indent_with_tabs |
wbcr_inp_activate_by_default |
theysaidso_admin_options |
wbcr_inp_demo_snippets_created |
wbcr_inp_code_editor_line_numbers |
can_compress_scripts |
wbcr_inp_code_editor_auto_close_brackets |
wbcr_inp_plugin_version |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woody code snippets - Insert Header Footer Code, AdSense Ads
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲133 | 13.40 ▼1.23 | 1.74 ▼0.52 | 42.60 ▲1.39 |
Dashboard /wp-admin | 2,319 ▲118 | 4.89 ▼0.07 | 101.65 ▼10.26 | 39.74 ▼4.74 |
Posts /wp-admin/edit.php | 2,205 ▲105 | 2.18 ▲0.17 | 40.21 ▼1.24 | 33.62 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,604 ▲59 | 18.23 ▼4.82 | 620.62 ▼37.27 | 36.11 ▼22.44 |
Media Library /wp-admin/upload.php | 1,465 ▲65 | 4.21 ▼0.04 | 101.34 ▼3.90 | 43.36 ▼0.63 |
Settings /wp-admin/edit.php?post_type=wbcr-snippets&page=settings-wbcr_insert_php | 1,460 | 2.12 | 36.96 | 39.12 |
+ Add snippet /wp-admin/edit.php?post_type=wbcr-snippets&page=new-item-wbcr_insert_php | 1,056 | 2.06 | 23.45 | 33.03 |
About /wp-admin/edit.php?post_type=wbcr-snippets&page=about-wbcr_insert_php | 1,091 | 2.03 | 22.77 | 64.16 |
Snippets library /wp-admin/edit.php?post_type=wbcr-snippets&page=snippet-library-wbcr_insert_php | 911 | 1.73 | 24.84 | 29.31 |
Tags /wp-admin/edit-tags.php?taxonomy=wbcr-snippet-tags&post_type=wbcr-snippets | 1,672 | 2.17 | 28.28 | 34.99 |
License /wp-admin/edit.php?post_type=wbcr-snippets&page=license-wbcr_insert_php | 946 | 2.08 | 23.43 | 39.70 |
Snippets /wp-admin/edit.php?post_type=wbcr-snippets | 2,300 | 2.24 | 36.66 | 31.46 |
Import/Export /wp-admin/edit.php?post_type=wbcr-snippets&page=import-wbcr_insert_php | 947 | 1.85 | 35.01 | 35.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 21 options in the database
- wbcr_inp_code_editor_indent_unit
- wbcr_inp_first_activation
- wbcr_inp_code_editor_theme
- wbcr_inp_plugin_activated
- wbcr_inp_code_editor_tab_size
- can_compress_scripts
- wbcr_inp_code_editor_highlight_selection_matches
- wbcr_inp_plugin_version
- db_upgraded
- wbcr_inp_demo_snippets_created
- ...
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/insert-php/includes/compat.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/insert-php/includes/shortcodes/shortcode-insert-php.php:35
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms463_FontControl' not found in wp-content/plugins/insert-php/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/insert-php/libs/factory/feedback/views/deactivate-form.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please a description for screenshot #8 in insert-php/assets to your readme.txt
insert-php/insert_php.php 92% from 13 tests
The main file in "Woody code snippets - Insert Header Footer Code, AdSense Ads" v. 2.4.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("insert-php.php" instead of "insert_php.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin36,304 lines of code in 365 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 187 | 5,133 | 11,865 | 18,042 |
JSON | 2 | 0 | 0 | 11,089 |
CSS | 99 | 313 | 358 | 2,347 |
JavaScript | 56 | 524 | 997 | 2,140 |
PO File | 7 | 493 | 600 | 1,505 |
LESS | 12 | 249 | 49 | 1,161 |
Markdown | 2 | 6 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 158 | |
▷ Abstract classes | 19 | 12.03% |
▷ Concrete classes | 139 | 87.97% |
▷ Final classes | 2 | 1.44% |
Methods | 1,053 | |
▷ Static methods | 85 | 8.07% |
▷ Public methods | 825 | 78.35% |
▷ Protected methods | 129 | 12.25% |
▷ Private methods | 99 | 9.40% |
Functions | 61 | |
▷ Named functions | 39 | 63.93% |
▷ Anonymous functions | 22 | 36.07% |
Constants | 101 | |
▷ Global constants | 87 | 86.14% |
▷ Class constants | 14 | 13.86% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.23MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/help.png | 0.15KB | 0.21KB | 0.00% |
libs/factory/bootstrap/assets/images/drop-menu_arrow.png | 0.24KB | 0.25KB | 0.00% |
admin/assets/img/snippet-cut.png | 2.04KB | 1.23KB | ▼ 39.67% |
admin/assets/img/video.png | 8.70KB | 5.56KB | ▼ 36.13% |
admin/assets/img/43d2351a21.png | 55.15KB | 21.66KB | ▼ 60.73% |