Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▲16.03ms] Passed 4 tests
Server-side resources used by WP Smart Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 55.36 ▲12.94 |
Dashboard /wp-admin | 4.43 ▲1.12 | 68.31 ▲15.34 |
Posts /wp-admin/edit.php | 4.44 ▲1.08 | 76.21 ▲17.95 |
Add New Post /wp-admin/post-new.php | 7.45 ▲1.56 | 114.53 ▲17.87 |
Media Library /wp-admin/upload.php | 4.37 ▲1.15 | 59.81 ▲22.79 |
Import/Export settings /wp-admin/admin.php?&page=wpse-import-export | 4.33 | 56.13 |
Template manager /wp-admin/admin.php?&page=wpse-htmltemplate | 4.32 | 49.15 |
Configuration /wp-admin/edit.php?post_type=wpse_profiles&page=wpse-config | 5.11 | 55.63 |
Insert Bullet /wp-admin/admin.php?&page=wpse-bullet | 4.37 | 55.55 |
Insert Columns /wp-admin/admin.php?&page=wpse-columns | 4.33 | 54.62 |
Insert Button /wp-admin/admin.php?&page=wpse-button | 4.39 | 52.98 |
Server storage [IO: ▲8.60MB] [DB: ▲0.11MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- There were 662 files (7,084.80KB) illegally modified outside of "wp-content/plugins/wp-smart-editor/" and "wp-content/uploads/"
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/calendar-jos.css
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/jaofiletree.css
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/chosen-sprite.png
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/chosen-sprite@2x.png
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/chosen.css
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/bootstrap.scss
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/index.html
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/ajax-loader.gif
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/icon_close.png
- (new file) wp-content/plugins/wp-file-download-light/app/admin/assets/css/bootstrap.min.css
- ...
Filesystem: 746 new files
Database: 6 new tables, 14 new options
New tables |
---|
wp_wpfd_statistics |
wp_wptm_styles |
wp_wptm_charttypes |
wp_wptm_charts |
wp_wptm_tables |
wp_wptm_categories |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
wpse_config |
db_upgraded |
_wpfd_search_page_id |
wpse_auto_active_extra_plugins |
wpfdl_version |
wpse_button_styles |
wpfd-category_children |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Smart Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲263 | 14.07 ▼0.51 | 12.37 ▲10.25 | 43.17 ▼10.52 |
Dashboard /wp-admin | 2,286 ▲98 | 5.24 ▼0.66 | 103.16 ▼12.46 | 44.69 ▼2.71 |
Posts /wp-admin/edit.php | 2,172 ▲80 | 2.39 ▲0.40 | 36.46 ▼0.09 | 36.73 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,649 ▲116 | 18.07 ▼5.03 | 650.69 ▼30.23 | 36.62 ▼26.03 |
Media Library /wp-admin/upload.php | 1,474 ▲86 | 4.54 ▲0.32 | 98.23 ▼12.63 | 42.96 ▼2.22 |
Import/Export settings /wp-admin/admin.php?&page=wpse-import-export | 911 | 2.02 | 27.32 | 29.41 |
Template manager /wp-admin/admin.php?&page=wpse-htmltemplate | 898 | 2.12 | 29.08 | 28.57 |
Configuration /wp-admin/edit.php?post_type=wpse_profiles&page=wpse-config | 1,715 | 3.66 | 69.79 | 99.53 |
Insert Bullet /wp-admin/admin.php?&page=wpse-bullet | 1,304 | 2.83 | 38.47 | 43.10 |
Insert Columns /wp-admin/admin.php?&page=wpse-columns | 1,083 | 3.07 | 40.95 | 18.48 |
Insert Button /wp-admin/admin.php?&page=wpse-button | 1,593 | 3.26 | 52.51 | 29.34 |
Uninstaller [IO: ▲6.92MB] [DB: ▲0.10MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure failed, leaving 6 tables in the database
- wp_wptm_tables
- wp_wptm_charts
- wp_wptm_charttypes
- wp_wptm_categories
- wp_wpfd_statistics
- wp_wptm_styles
- Zombie WordPress options were found after uninstall: 14 options
- can_compress_scripts
- wpse_auto_active_extra_plugins
- widget_theysaidso_widget
- wpse_button_styles
- wptml_version
- wpfdl_version
- wpfd-category_children
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?&page=wpse-htmltemplate
- > Warning in wp-content/plugins/wp-smart-editor/plugins/htmltemplate/htmltemplate.php+30
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?&page=wpse-htmltemplate
- > Warning in wp-content/plugins/wp-smart-editor/plugins/htmltemplate/htmltemplate.php+31
Invalid argument supplied for foreach()
SRP 0% from 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
Almost there! Just fix the following items
- 16× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/wp-smart-editor/inc/wpse-main.php
- > /wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/install.php
- > /wp-content/plugins/wp-smart-editor/install.php
- > /wp-content/plugins/wp-smart-editor/inc/wpse-profiles.php
- > /wp-content/plugins/wp-smart-editor/plugins/button/button.php
- > /wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/site/helpers/table_template.inc.php
- > /wp-content/plugins/wp-smart-editor/plugins/htmltemplate/htmltemplate.php
- > /wp-content/plugins/wp-smart-editor/inc/wpse-configuration.php
- > /wp-content/plugins/wp-smart-editor/plugins/columns/columns.php
- > /wp-content/plugins/wp-smart-editor/plugins/bulletedmanager/bulletmngr.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: headers in wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/site/helpers/table_template.inc.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-smart-editor/extensions/wp-file-download-light/app/site/themes/empty-wpfd-category.php:9
- > PHP Notice
Undefined variable: result in wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/site/helpers/table_template.inc.php on line 11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-smart-editor/extensions/wp-file-download-light/app/admin/views/file/tpl/versions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Mobile_Detect' not found in wp-content/plugins/wp-smart-editor/inc/Mobile-Detect-2.8.25/namespaced/Detection/MobileDetect.php:22
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/site/helpers/table_template.inc.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/app/site/helpers/table_template.inc.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-smart-editor/extensions/wp-file-download-light/app/site/themes/single-wpfd-file.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-smart-editor/extensions/wp-table-manager-light/wp-table-manager-light.php:47
- > PHP Fatal error
Uncaught Error: Class 'Mobile_Detect' not found in wp-content/plugins/wp-smart-editor/inc/Mobile-Detect-2.8.25/export/exportToJSON.php:26
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?&page=wpse-htmltemplate
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'activeEditor')" "TypeError: Cannot read properties of undefined (reading 'activeEditor')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-smart-editor/plugins/htmltemplate/htmltemplate.js?ver=6.3.1:12:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?&page=wpse-button
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'activeEditor')
- > GET request to /wp-admin/admin.php?&page=wpse-bullet
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'activeEditor')" "TypeError: Cannot read properties of undefined (reading 'activeEditor')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-smart-editor/plugins/bulletedmanager/bulleted.js?ver=6.3.1:21:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?&page=wpse-button
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'activeEditor')" "TypeError: Cannot read properties of undefined (reading 'activeEditor')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-smart-editor/plugins/button/button.js?ver=6.3.1:283:33)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5, #6, #7 in wp-smart-editor/assets to your readme.txt
- Tags: There are too many tags (13 tag instead of maximum 10)
wp-smart-editor/wp-smart-editor.php Passed 13 tests
Analyzing the main PHP file in "WP Smart Editor" version 1.3.3
36 characters long description:
Smart and powerful tool for editing.
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected108,227 lines of code in 329 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 119 | 9,231 | 7,422 | 55,429 |
CSS | 61 | 2,806 | 934 | 19,584 |
PHP | 127 | 3,047 | 4,586 | 16,852 |
SVG | 10 | 0 | 0 | 9,895 |
Sass | 1 | 26 | 0 | 5,808 |
XML | 4 | 101 | 151 | 411 |
Markdown | 2 | 93 | 0 | 195 |
JSON | 3 | 0 | 0 | 37 |
YAML | 1 | 1 | 5 | 15 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 28.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 370.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 94 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 546 | |
▷ Static methods | 54 | 9.89% |
▷ Public methods | 377 | 69.05% |
▷ Protected methods | 144 | 26.37% |
▷ Private methods | 25 | 4.58% |
Functions | 90 | |
▷ Named functions | 82 | 91.11% |
▷ Anonymous functions | 8 | 8.89% |
Constants | 35 | |
▷ Global constants | 26 | 74.29% |
▷ Class constants | 9 | 25.71% |
▷ Public constants | 9 | 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
332 PNG files occupy 0.75MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
extensions/wp-file-download-light/app/site/assets/images/jao/directory.png | 1.02KB | 0.16KB | ▼ 84.25% |
extensions/wp-file-download-light/app/site/assets/images/theme/wma.png | 0.60KB | 0.60KB | 0.00% |
extensions/wp-file-download-light/app/site/assets/images/theme/small/tiff.png | 3.44KB | 0.94KB | ▼ 72.80% |
extensions/wp-file-download-light/app/admin/assets/images/jao/txt.png | 0.33KB | 0.46KB | 0.00% |
extensions/wp-file-download-light/app/admin/assets/images/jao/music.png | 0.38KB | 0.61KB | 0.00% |