Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.03MB] [CPU: ▼11.94ms] Passed 4 tests
An overview of server-side resources used by XHE Quicktags
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.09 | 47.50 ▲3.40 |
Dashboard /wp-admin | 3.72 ▲0.15 | 56.74 ▼13.51 |
Posts /wp-admin/edit.php | 3.77 ▲0.09 | 53.29 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.78 ▼0.36 | 74.38 ▼38.29 |
Media Library /wp-admin/upload.php | 3.58 ▲0.09 | 42.58 ▲2.74 |
WP AddQuicktags /wp-admin/options-general.php?page=xheqt-settings | 3.60 | 37.72 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by XHE Quicktags
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.44 ▼0.20 | 2.21 ▲0.11 | 45.96 ▲3.19 |
Dashboard /wp-admin | 2,196 ▲16 | 5.64 ▼0.05 | 96.17 ▲1.87 | 46.14 ▲4.99 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.98 ▼0.02 | 36.29 ▼1.06 | 35.90 ▼1.37 |
Add New Post /wp-admin/post-new.php | 1,532 ▼13 | 17.64 ▼5.54 | 686.17 ▲19.54 | 54.00 ▼5.51 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.27 ▲0.05 | 100.88 ▲0.18 | 43.00 ▼0.84 |
WP AddQuicktags /wp-admin/options-general.php?page=xheqt-settings | 986 | 2.18 | 35.48 | 29.94 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 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
Please take a closer look at the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/xhe-quicktags/includes/class-admin.php
- > /wp-content/plugins/xhe-quicktags/includes/class-admin-tinymce.php
- > /wp-content/plugins/xhe-quicktags/includes/class-admin-settings.php
- > /wp-content/plugins/xhe-quicktags/xhe-quicktags.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/xhe-quicktags/templates/html-admin-repeater-field.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/xhe-quicktags/templates/html-admin-settings.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: tinymce, editor, button, buttons, add buttons...
xhe-quicktags/xhe-quicktags.php Passed 13 tests
The main PHP file in "XHE Quicktags" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Allows you to add buttons to the WordPress admin text editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,059 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 68 | 2,603 | 784 | 9,774 |
CSS | 3 | 61 | 1 | 593 |
PHP | 7 | 124 | 17 | 545 |
Sass | 1 | 31 | 0 | 147 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 4 | 18.18% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 2 | 9.09% |
▷ Private methods | 3 | 13.64% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected