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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.65ms] Passed 4 tests
This is a short check of server-side resources used by Abbreviation button for TinyMCE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.56 ▲1.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.26 ▼3.98 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.13 ▼3.13 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.10 ▼18.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.38 ▼1.31 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Abbreviation button for TinyMCE
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.35 ▼0.04 | 1.60 ▲0.02 | 42.32 ▲5.77 |
Dashboard /wp-admin | 2,198 ▲24 | 5.59 ▲0.00 | 81.33 ▼4.66 | 38.40 ▼4.77 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.05 | 33.66 ▼3.36 | 32.27 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.10 | 610.50 ▼23.61 | 54.72 ▼4.44 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.01 | 94.12 ▼3.28 | 41.17 ▼3.57 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
abbreviation-button-for-tinymce/tinymce-abbr.php 92% from 13 tests
The primary PHP file in "Abbreviation button for TinyMCE" version 1.3.7 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("abbreviation-button-for-tinymce.php" instead of "tinymce-abbr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin170 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 3 | 8 | 67 |
PO File | 1 | 13 | 24 | 53 |
PHP | 2 | 7 | 50 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 15.61KB | 5.76KB | ▼ 63.09% |
assets/screenshot-2.png | 58.77KB | 18.40KB | ▼ 68.69% |
assets/screenshot-1.png | 53.80KB | 14.55KB | ▼ 72.96% |
assets/icon-128x128.png | 5.16KB | 1.36KB | ▼ 73.58% |
admin/js/images/abbr-icon.png | 2.98KB | 0.28KB | ▼ 90.73% |