Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼288.98ms] Passed 4 tests
Server-side resources used by AddQuicktag
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.04 | 65.25 ▼3.46 |
Dashboard /wp-admin | 3.63 ▲0.22 | 40.58 ▲0.26 |
Posts /wp-admin/edit.php | 3.86 ▲0.21 | 42.12 ▲1.06 |
Add New Post /wp-admin/post-new.php | 7.10 ▲0.12 | 99.87 ▼1,153.78 |
Media Library /wp-admin/upload.php | 3.51 ▲0.21 | 36.59 ▲9.45 |
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php | 3.50 | 27.31 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for AddQuicktag
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲47 | 16.01 ▲0.63 | 5.90 ▲0.21 | 2.69 ▲0.54 |
Dashboard /wp-admin | 2,907 ▲57 | 6.09 ▼0.02 | 161.25 ▲29.78 | 178.60 ▼44.96 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.22 ▼0.01 | 68.62 ▲6.51 | 198.95 ▲56.93 |
Add New Post /wp-admin/post-new.php | 1,767 ▲56 | 21.61 ▲0.28 | 462.92 ▲3.84 | 156.95 ▼19.27 |
Media Library /wp-admin/upload.php | 1,697 ▲2 | 5.45 ▼0.03 | 147.66 ▲7.10 | 190.97 ▼55.88 |
AddQuicktag /wp-admin/options-general.php?page=addquicktag/inc/class-settings.php | 2,656 | 2.76 | 56.04 | 292.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/addquicktag/inc/class-remove-quicktags.php
- > /wp-content/plugins/addquicktag/inc/class-imexport.php
- > /wp-content/plugins/addquicktag/inc/class-tinymce.php
- > /wp-content/plugins/addquicktag/inc/class-code-quicktags.php
- > /wp-content/plugins/addquicktag/inc/class-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
7 plugin tags: quicktag, editor, add buttons, buttons, visual editor...
addquicktag/addquicktag.php 92% from 13 tests
Analyzing the main PHP file in "AddQuicktag" version 2.6.1
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,989 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 243 | 574 | 1,153 |
JavaScript | 10 | 97 | 125 | 716 |
CSS | 4 | 12 | 9 | 120 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.83 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 7 | 15.56% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected