Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼282.97ms] Passed 4 tests
Analyzing server-side resources used by Jayj Quicktag
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 57.78 ▼1.02 |
Dashboard /wp-admin | 3.46 ▲0.04 | 82.63 ▲43.48 |
Posts /wp-admin/edit.php | 3.69 ▲0.04 | 40.99 ▼5.56 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.05 | 98.74 ▼1,167.22 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 71.02 ▲41.92 |
Jayj Quicktag /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php | 3.29 | 25.51 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jayj Quicktag
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲48 | 15.23 ▼0.38 | 6.06 ▼0.25 | 2.17 ▼0.09 |
Dashboard /wp-admin | 2,897 ▲36 | 6.14 ▼0.01 | 117.25 ▼20.49 | 151.64 ▼65.78 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.37 ▲0.13 | 64.14 ▲0.71 | 187.14 ▲43.11 |
Add New Post /wp-admin/post-new.php | 1,761 ▲95 | 21.38 ▲1.00 | 464.76 ▲26.56 | 159.98 ▼15.20 |
Media Library /wp-admin/upload.php | 1,703 ▲11 | 5.52 ▲0.00 | 142.24 ▲5.25 | 186.78 ▼59.75 |
Jayj Quicktag /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php | 1,257 | 3.26 | 73.50 | 184.27 |
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 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=jayj-quicktag/jayj-quicktag.php
- > Notice in wp-content/plugins/jayj-quicktag/jayj-quicktag.php+83
Trying to access array offset on value of type bool
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/jayj-quicktag/jayj-quicktag.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: quick, quicktags, editor, generator, tag...
jayj-quicktag/jayj-quicktag.php Passed 13 tests
The primary PHP file in "Jayj Quicktag" version 1.3.2 is used by WordPress to initiate all plugin functionality
56 characters long description:
Allows you to easily add custom quicktags to the editor.
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
No dangerous file extensions were detected599 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 80 | 69 | 203 |
PO File | 2 | 66 | 112 | 171 |
Markdown | 1 | 42 | 0 | 83 |
LESS | 1 | 18 | 16 | 73 |
JavaScript | 2 | 18 | 15 | 54 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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