Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.39MB] [CPU: ▼17.76ms] Passed 4 tests
Server-side resources used by Mos Testimonial
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 30.51 ▼12.51 |
Dashboard /wp-admin | 3.75 ▲0.44 | 33.68 ▼15.61 |
Posts /wp-admin/edit.php | 3.88 ▲0.53 | 37.69 ▼16.41 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 89.34 ▼26.51 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 40.93 ▲2.48 |
Add New /wp-admin/post-new.php?post_type=testimonial | 3.92 | 47.38 |
Settings /wp-admin/edit.php?post_type=testimonial&page=mos_testimonial_settings | 3.81 | 39.94 |
Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial | 3.75 | 38.82 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial | 3.75 | 32.71 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.86 | 33.77 |
Server storage [IO: ▲6.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 953 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Mos Testimonial
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲172 | 13.66 ▼0.29 | 5.35 ▲3.34 | 39.07 ▼7.36 |
Dashboard /wp-admin | 2,279 ▲76 | 5.10 ▼0.91 | 103.87 ▼15.50 | 44.47 ▲3.77 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.08 ▲0.08 | 38.62 ▼2.26 | 36.79 ▼5.53 |
Add New Post /wp-admin/post-new.php | 1,570 ▲25 | 22.99 ▲0.01 | 628.87 ▼24.25 | 62.30 ▲5.39 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.33 ▲0.09 | 116.09 ▼11.33 | 52.02 ▲0.54 |
Add New /wp-admin/post-new.php?post_type=testimonial | 1,652 | 1.54 | 12.17 | 48.67 |
Settings /wp-admin/edit.php?post_type=testimonial&page=mos_testimonial_settings | 1,655 | 2.58 | 46.42 | 44.52 |
Tags /wp-admin/edit-tags.php?taxonomy=tag&post_type=testimonial | 1,303 | 2.22 | 29.43 | 28.34 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial-category&post_type=testimonial | 1,331 | 2.22 | 28.58 | 31.38 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,207 | 2.28 | 37.65 | 29.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > Notice in wp-content/plugins/mos-testimonial/mos-testimonial-functions.php+3
Undefined index: page
- > GET request to /wp-admin/post-new.php?post_type=testimonial
- > Compile error in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_File.php+15
Declaration of CMB2_Type_File::render() must be compatible with CMB2_Type_Text::render($args = Array)
- > GET request to /wp-admin/edit.php?post_type=testimonial&page=mos_testimonial_settings
- > Notice in wp-content/plugins/mos-testimonial/mos-testimonial-settings.php+467
Undefined index: tab
- > GET request to /wp-admin/edit.php?post_type=testimonial&page=mos_testimonial_settings
- > Notice in wp-content/plugins/mos-testimonial/mos-testimonial-settings.php+468
Undefined index: testimonial_active_tab
SRP 50% 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
- 40× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-testimonial/mos-testimonial-post-types.php:3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mos-testimonial/mos-testimonial-metaboxes.php:56
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/mos-testimonial/plugins/metabox/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > 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: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/mos-testimonial/js/mos-testimonial-admin.js?ver=6.3.1:21:29)\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
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > 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: $(...).sortable is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
8 plugin tags: testimonial, wordpress testimonial, simple testimonial, testimonials, testimonial plugin...
mos-testimonial/mos-testimonial.php Passed 13 tests
The main PHP file in "Mos Testimonial" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
21 characters long description:
Base of future plugin
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 plugin142,224 lines of code in 788 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 313 | 8,338 | 7,069 | 70,124 |
PO File | 120 | 13,782 | 17,882 | 31,544 |
HTML | 182 | 3,835 | 11 | 23,000 |
CSS | 91 | 1,608 | 1,463 | 7,841 |
PHP | 56 | 1,855 | 4,794 | 6,878 |
Markdown | 8 | 765 | 0 | 1,503 |
Sass | 14 | 265 | 25 | 1,258 |
JSON | 1 | 0 | 0 | 47 |
SVG | 1 | 0 | 0 | 19 |
Bourne Shell | 1 | 0 | 1 | 5 |
YAML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 146.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 8 | 12.70% |
▷ Concrete classes | 55 | 87.30% |
▷ Final classes | 0 | 0.00% |
Methods | 442 | |
▷ Static methods | 67 | 15.16% |
▷ Public methods | 368 | 83.26% |
▷ Protected methods | 71 | 16.06% |
▷ Private methods | 3 | 0.68% |
Functions | 58 | |
▷ Named functions | 58 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
plugins/metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
plugins/metabox/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
plugins/CodeMirror/doc/yinyang.png | 4.52KB | 2.03KB | ▼ 55.19% |
plugins/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |