Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.33ms] Passed 4 tests
A check of server-side resources used by Just TinyMCE Custom Styles
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.46 ▼2.96 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.31 ▼0.79 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.86 ▼2.55 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 93.68 ▲1.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 38.79 ▲1.91 |
Presets /wp-admin/admin.php?page=jtmce_presets | 3.32 | 35.78 |
TinyMCE Custom Styles /wp-admin/options-general.php?page=jtmce_formats | 3.34 | 36.56 |
Settings /wp-admin/admin.php?page=jtmce_settings | 3.35 | 36.08 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Just TinyMCE Custom Styles
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.14 | 4.62 ▲2.89 | 43.30 ▼1.18 |
Dashboard /wp-admin | 2,207 ▲22 | 5.84 ▲0.05 | 101.37 ▼2.80 | 39.32 ▼5.78 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.05 | 37.27 ▼5.76 | 31.37 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.05 ▲5.43 | 644.89 ▼50.73 | 52.83 ▼7.43 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.04 | 97.00 ▼22.92 | 46.37 ▼3.15 |
Presets /wp-admin/admin.php?page=jtmce_presets | 835 | 1.99 | 38.66 | 27.29 |
TinyMCE Custom Styles /wp-admin/options-general.php?page=jtmce_formats | 811 | 1.96 | 34.29 | 28.10 |
Settings /wp-admin/admin.php?page=jtmce_settings | 1,012 | 1.95 | 28.06 | 31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/just-tinymce-styles/views/_footer.php
- 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/just-tinymce-styles/views/presets/index.php:14
- > PHP Fatal error
Uncaught Error: Class 'jtmce\\core\\Component' not found in wp-content/plugins/just-tinymce-styles/core/Controller.php:6
- > PHP Fatal error
Uncaught Error: Class 'jtmce\\core\\Model' not found in wp-content/plugins/just-tinymce-styles/models/Settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/just-tinymce-styles/views/settings/index.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/just-tinymce-styles/views/_tabs.php:2
- > PHP Warning
include(JTMCE_ROOT/views/_header.php): failed to open stream: No such file or directory in wp-content/plugins/just-tinymce-styles/views/formats/index.php on line 8
- > PHP Warning
include(): Failed opening 'JTMCE_ROOT/views/_header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/just-tinymce-styles/views/formats/index.php on line 8
- > PHP Warning
include(JTMCE_ROOT/views/_header.php): failed to open stream: No such file or directory in wp-content/plugins/just-tinymce-styles/views/presets/index.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'jtmce\\core\\Model' not found in wp-content/plugins/just-tinymce-styles/models/Preset.php:8
- > PHP Fatal error
Uncaught Error: Class 'jtmce\\core\\Model' not found in wp-content/plugins/just-tinymce-styles/models/Formats.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Plugin settings page where you can enable/disable formatter options), #2 (Style formatters edit), #3 (Bootstrap styles preset)
just-tinymce-styles/just-tiny-mce-styles.php 92% from 13 tests
The primary PHP file in "Just TinyMCE Custom Styles" version 1.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("just-tinymce-styles.php" instead of "just-tiny-mce-styles.php")
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
Success! There were no dangerous files found in this plugin1,449 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 250 | 395 | 1,052 |
JSON | 1 | 0 | 0 | 211 |
JavaScript | 1 | 23 | 24 | 100 |
CSS | 1 | 1 | 0 | 86 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 1 | 5.88% |
▷ Concrete classes | 16 | 94.12% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 11 | 16.18% |
▷ Public methods | 63 | 92.65% |
▷ Protected methods | 3 | 4.41% |
▷ Private methods | 2 | 2.94% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.51MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 211.57KB | 62.91KB | ▼ 70.26% |
screenshot-2.png | 57.42KB | 12.94KB | ▼ 77.46% |
screenshot-3.png | 109.44KB | 31.74KB | ▼ 71.00% |
screenshot-1.png | 146.39KB | 45.96KB | ▼ 68.61% |