Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼141.36ms] Passed 4 tests
Server-side resources used by TinyMCE Templates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 34.82 ▲13.69 |
Dashboard /wp-admin | 3.10 ▲0.05 | 47.19 ▲0.39 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 45.41 ▲0.54 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.51 ▼564.67 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 30.83 ▼1.71 |
Templates /wp-admin/edit.php?post_type=tinymcetemplates | 3.09 | 33.38 |
Add New /wp-admin/post-new.php?post_type=tinymcetemplates | 3.16 | 44.12 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for TinyMCE Templates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,747 ▲141 | 15.95 ▲0.35 | 10.65 ▼0.80 | 47.97 ▲1.21 |
Dashboard /wp-admin | 3,013 ▲79 | 5.88 ▼0.11 | 137.35 ▼13.44 | 106.47 ▼0.58 |
Posts /wp-admin/edit.php | 2,785 ▲46 | 2.72 ▲0.01 | 64.57 ▼1.63 | 86.29 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 21.72 ▲3.02 | 280.18 ▼159.33 | 109.47 ▲0.40 |
Media Library /wp-admin/upload.php | 1,850 ▲102 | 5.03 ▲0.03 | 167.66 ▲20.81 | 113.80 ▼0.65 |
Templates /wp-admin/edit.php?post_type=tinymcetemplates | 1,448 | 2.63 | 63.38 | 69.96 |
Add New /wp-admin/post-new.php?post_type=tinymcetemplates | 3,146 | 9.14 | 226.76 | 144.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tinymce-templates/tinymce-templates.php:113
- > 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)
Everything seems fine, but this is not an exhaustive test
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
3 plugin tags: tinymce, visual editor, template
tinymce-templates/tinymce-templates.php 92% from 13 tests
The main file in "TinyMCE Templates" v. 4.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,604 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 428 | 696 | 842 |
PHP | 1 | 62 | 149 | 438 |
JavaScript | 1 | 39 | 2 | 166 |
CSS | 2 | 1 | 0 | 79 |
LESS | 1 | 10 | 0 | 79 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin