Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.92ms] Passed 4 tests
Analyzing server-side resources used by Theme Editor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.71 ▲0.01 |
Dashboard /wp-admin | 3.84 ▲0.54 | 50.67 ▼2.43 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 52.08 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 93.02 ▼5.45 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 38.28 ▲7.47 |
Theme Code Editor /wp-admin/admin.php?page=theme_editor_theme | 4.33 | 44.12 |
Child Theme Permission /wp-admin/admin.php?page=ms_child_theme_editor_control | 3.67 | 34.10 |
Notify Me /wp-admin/admin.php?page=theme_editor_notify | 3.67 | 34.47 |
Child Theme /wp-admin/admin.php?page=ms_child_theme_editor | 4.58 | 43.96 |
Plugin Code Editor /wp-admin/plugins.php?page=theme_editor_plugin | 3.87 | 36.64 |
Plugin Code Editor /wp-admin/admin.php?page=theme_editor_plugin | 3.77 | 39.46 |
Access Control /wp-admin/admin.php?page=theme_editor_permisions | 3.67 | 33.24 |
Theme Code Editor /wp-admin/themes.php?page=theme_editor_theme | 4.47 | 42.90 |
Settings /wp-admin/admin.php?page=theme_editor_settings | 3.71 | 35.32 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 201 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
mk_te_settings_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Theme Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲106 | 14.23 ▼0.45 | 1.70 ▼0.27 | 37.54 ▼6.62 |
Dashboard /wp-admin | 2,246 ▲69 | 5.61 ▲0.06 | 96.03 ▼8.43 | 70.19 ▲21.99 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.00 ▲0.02 | 39.58 ▲0.32 | 34.04 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,743 ▲217 | 24.63 ▲1.48 | 667.90 ▲3.23 | 48.45 ▼5.12 |
Media Library /wp-admin/upload.php | 1,460 ▲66 | 4.17 ▼0.01 | 96.94 ▲0.03 | 73.90 ▲29.33 |
Theme Code Editor /wp-admin/admin.php?page=theme_editor_theme | 2,243 | 3.54 | 80.21 | 169.09 |
Child Theme Permission /wp-admin/admin.php?page=ms_child_theme_editor_control | 878 | 2.00 | 23.95 | 31.06 |
Notify Me /wp-admin/admin.php?page=theme_editor_notify | 873 | 2.00 | 26.12 | 29.88 |
Child Theme /wp-admin/admin.php?page=ms_child_theme_editor | 1,452 | 2.39 | 55.33 | 40.66 |
Plugin Code Editor /wp-admin/plugins.php?page=theme_editor_plugin | 2,294 | 2.44 | 62.95 | 54.64 |
Plugin Code Editor /wp-admin/admin.php?page=theme_editor_plugin | 2,291 | 2.45 | 65.46 | 79.62 |
Access Control /wp-admin/admin.php?page=theme_editor_permisions | 870 | 2.01 | 22.72 | 28.59 |
Theme Code Editor /wp-admin/themes.php?page=theme_editor_theme | 2,243 | 3.37 | 78.97 | 134.65 |
Settings /wp-admin/admin.php?page=theme_editor_settings | 1,320 | 2.00 | 35.43 | 32.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- mk_te_settings_options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
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
Everything seems fine, however 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/theme-editor/ms_child_theme_editor.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/theme-editor/theme_editor.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/theme-editor/theme_editor.php on line 11
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #14 (Preview Theme), #15 (Child Theme Permission)
theme-editor/theme_editor.php 92% from 13 tests
The main PHP file in "Theme Editor" ver. 2.8 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("theme-editor.php" instead of "theme_editor.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
Everything looks great! No dangerous files found in this plugin31,262 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 68 | 2,233 | 1,675 | 19,045 |
PHP | 29 | 776 | 650 | 7,778 |
CSS | 61 | 478 | 276 | 3,994 |
PO File | 3 | 177 | 186 | 435 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview 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.43 |
Average class complexity | 84.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 419.00 |
Average method complexity | 5.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 18 | 7.38% |
▷ Public methods | 235 | 96.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 3.69% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
24 PNG files occupy 0.55MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/view/images/mseditor-notify-icon.png | 1.39KB | 0.73KB | ▼ 47.57% |
app/view/images/folder.png | 1.72KB | 1.18KB | ▼ 31.53% |
app/view/images/html.png | 1.67KB | 1.02KB | ▼ 38.69% |
includes/assests/image/download.png | 1.11KB | 0.19KB | ▼ 82.61% |
app/view/images/php.png | 1.81KB | 1.01KB | ▼ 44.05% |