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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.29ms] Passed 4 tests
An overview of server-side resources used by TinyMCE Code Formatting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.86 ▼0.15 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.28 ▼3.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.38 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.49 ▼5.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.48 ▲0.69 |
TinyMCE Code Formatting /wp-admin/options-general.php?page=mce-code-formatting | 3.22 | 30.31 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TinyMCE Code Formatting
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.11 | 1.92 ▼0.03 | 41.08 ▼3.04 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.05 | 109.81 ▼7.16 | 42.70 ▼2.22 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 42.64 ▲6.59 | 36.06 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,377 ▼156 | 16.65 ▼6.45 | 550.38 ▼95.27 | 42.78 ▼6.45 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.09 | 93.81 ▼6.63 | 39.45 ▼2.81 |
TinyMCE Code Formatting /wp-admin/options-general.php?page=mce-code-formatting | 798 | 2.05 | 24.67 | 27.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-code-formatting/tinymce-code-formatting.php:61
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-code-formatting/lib/options.php:3
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: shortcut, tinymce, formatting, button, pre...
tinymce-code-formatting/tinymce-code-formatting.php Passed 13 tests
"TinyMCE Code Formatting" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
80 characters long description:
Adds the Pre and Code buttons to the TinyMCE toolbar with customizable shortcuts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected235 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 32 | 19 | 137 |
PHP | 2 | 26 | 44 | 88 |
CSS | 1 | 2 | 0 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mce-pre/images/code.png | 0.15KB | 0.11KB | ▼ 25.00% |
mce-pre/images/pre.png | 0.14KB | 0.11KB | ▼ 22.38% |