Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.50ms] Passed 4 tests
Server-side resources used by SVG Case Study
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.67 ▼1.08 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.07 ▼12.62 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.41 ▼0.40 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.94 ▼11.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.89 ▲4.75 |
All Case Studies /wp-admin/edit.php?post_type=casestudies | 3.32 | 39.77 |
Case Studies Category /wp-admin/edit-tags.php?taxonomy=case_studies&post_type=casestudies | 3.36 | 36.76 |
Add Case Study /wp-admin/post-new.php?post_type=casestudies | 3.48 | 50.16 |
Case Studies Help /wp-admin/edit.php?post_type=casestudies&page=case-studies-help | 3.24 | 41.95 |
Case Studies Settings /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting | 3.27 | 38.54 |
Server storage [IO: ▲5.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SVG Case Study
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲223 | 13.88 ▼0.61 | 10.59 ▲8.80 | 45.06 ▲0.91 |
Dashboard /wp-admin | 2,266 ▲60 | 4.88 ▼0.94 | 109.47 ▲1.46 | 37.75 ▼7.61 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.22 ▲0.17 | 34.77 ▼0.08 | 34.52 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,564 ▲33 | 17.53 ▼5.69 | 671.07 ▼19.64 | 57.80 ▼6.29 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.27 ▲0.02 | 97.31 ▼10.61 | 43.56 ▼3.64 |
All Case Studies /wp-admin/edit.php?post_type=casestudies | 1,141 | 2.18 | 32.08 | 29.64 |
Case Studies Category /wp-admin/edit-tags.php?taxonomy=case_studies&post_type=casestudies | 1,326 | 2.42 | 28.79 | 31.21 |
Add Case Study /wp-admin/post-new.php?post_type=casestudies | 2,873 | 8.68 | 177.73 | 78.72 |
Case Studies Help /wp-admin/edit.php?post_type=casestudies&page=case-studies-help | 988 | 1.80 | 28.81 | 31.83 |
Case Studies Settings /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting | 1,348 | 3.23 | 39.35 | 80.52 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=casestudies
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+546
Trying to access array offset on value of type bool
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+201
Undefined variable: CaseBannerImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+214
Undefined variable: CaseBannerSvgImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+227
Undefined variable: CaseListImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+240
Undefined variable: CaseListSvgImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+253
Undefined variable: CaseSliderImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+266
Undefined variable: CaseSliderSvgImgCheckImg
- > GET request to /wp-admin/edit.php?post_type=casestudies&page=case-studies-setting
- > Notice in wp-content/plugins/case-study/include/class_case_studies.php+270
Undefined variable: casestudy_slider_svg_upload_image_id
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/case-study/include/single-casestudies.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/case-study/casestudy.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/case-study/include/shortcode.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Add screen for case study category.), #2 (Edit screen for case study post.), #3 (Default images for banner, list, slider and fields for headings.), #4 (Case study help screen to describe how to use shotcodes.), #5 (Add shortcodes in page.), #6 (Display slider of single post with thumbnails.), #7 (Listing of all case study post.), #8 (ID's of featured case study post.), #9 (Return url of banner image for given post ID.)
case-study/casestudy.php 85% from 13 tests
The main PHP file in "SVG Case Study" ver. 1.0 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: Please rename the main PHP file in this plugin to the plugin slug ("case-study.php" instead of "casestudy.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin8,519 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 12 | 20 | 6,717 |
PHP | 4 | 161 | 47 | 1,067 |
JavaScript | 6 | 109 | 89 | 650 |
SVG | 8 | 0 | 8 | 85 |
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.27 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 83.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 2.24MB with 1.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/images/no-img-w2.png | 18.80KB | 1.03KB | ▼ 94.50% |
include/images/no-img-h4.png | 19.15KB | 1.02KB | ▼ 94.68% |
include/images/screenshot3.png | 1.14KB | 0.87KB | ▼ 23.73% |
include/images/play.png | 18.55KB | 0.76KB | ▼ 95.93% |
include/images/screenshot1.png | 10.92KB | 7.10KB | ▼ 34.96% |