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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼9.02ms] Passed 4 tests
Analyzing server-side resources used by Simple Video Directory
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.02 ▼0.07 |
Dashboard /wp-admin | 3.41 ▲0.11 | 52.72 ▼0.57 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.55 ▼3.16 |
Add New Post /wp-admin/post-new.php | 5.30 ▼0.58 | 65.07 ▼31.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.05 ▼1.12 |
Settings /wp-admin/edit.php?post_type=smd&page=smd_settings | 3.31 | 36.03 |
New List /wp-admin/post-new.php?post_type=smd | 3.32 | 39.46 |
Import /wp-admin/edit.php?post_type=smd&page=qcsmd_bimport_page | 3.30 | 34.43 |
Support /wp-admin/edit.php?post_type=smd&page=qcpro-promo-page-smd-free-page-123za | 3.30 | 34.39 |
List Categories /wp-admin/edit-tags.php?taxonomy=smd_cat&post_type=smd | 3.33 | 35.78 |
Manage List Items /wp-admin/edit.php?post_type=smd | 3.38 | 41.01 |
Server storage [IO: ▲4.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 254 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
qc_smd_rating_active_time |
smd_ot_convrt |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Video Directory
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲240 | 13.98 ▼0.40 | 13.01 ▲11.19 | 36.46 ▼12.13 |
Dashboard /wp-admin | 2,264 ▲84 | 4.77 ▼0.81 | 92.49 ▲1.78 | 40.11 ▲1.31 |
Posts /wp-admin/edit.php | 2,175 ▲72 | 2.23 ▲0.29 | 39.02 ▲4.32 | 34.63 ▼2.49 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,740 | 19.37 ▼3.78 | 933.23 ▲246.05 | 36.99 ▼23.81 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.33 ▲0.15 | 99.61 ▼19.95 | 44.05 ▼4.07 |
Settings /wp-admin/edit.php?post_type=smd&page=smd_settings | 1,348 | 1.95 | 31.88 | 29.10 |
New List /wp-admin/post-new.php?post_type=smd | 2,015 | 3.81 | 78.24 | 45.03 |
Import /wp-admin/edit.php?post_type=smd&page=qcsmd_bimport_page | 982 | 1.79 | 27.86 | 31.40 |
Support /wp-admin/edit.php?post_type=smd&page=qcpro-promo-page-smd-free-page-123za | 1,406 | 1.78 | 26.83 | 108.16 |
List Categories /wp-admin/edit-tags.php?taxonomy=smd_cat&post_type=smd | 1,346 | 1.90 | 30.59 | 31.07 |
Manage List Items /wp-admin/edit.php?post_type=smd | 1,160 | 2.33 | 32.73 | 30.32 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- smd_ot_convrt
- qc_smd_rating_active_time
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=smd
- > User deprecated in wp-includes/functions.php+5828
Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-media-directory/qc-smd-directory-main.php
- 20× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/qc-opd-ajax-stuffs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-media-directory/inc/cmb/custom-meta-boxes.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/inc/cmb/classes.fields.php:638
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-media-directory/templates/style-2/template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-media-directory/templates/style-1/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/qc-op-directory-assets.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/simple-media-directory/templates/simple/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/qc-support-promo-page/class-qc-support-promo-page.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/qc-opd-setting-options.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-media-directory/class-qc-free-plugin-upgrade-notice.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: directory, media directory, video gallery, media gallery, video portfolio...
simple-media-directory/qc-smd-directory-main.php 85% from 13 tests
"Simple Video Directory" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("simple-media-directory.php" instead of "qc-smd-directory-main.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 check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin37,161 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 70 | 3,311 | 3,329 | 13,809 |
CSS | 35 | 676 | 300 | 8,969 |
JSON | 9 | 0 | 0 | 7,247 |
PHP | 26 | 1,630 | 732 | 4,266 |
SVG | 3 | 1 | 0 | 2,685 |
Markdown | 2 | 35 | 0 | 89 |
Bourne Shell | 1 | 24 | 0 | 55 |
Sass | 3 | 4 | 1 | 41 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 1 | 3.45% |
▷ Concrete classes | 28 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 2 | 1.38% |
▷ Public methods | 140 | 96.55% |
▷ Protected methods | 1 | 0.69% |
▷ Private methods | 4 | 2.76% |
Functions | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
50 PNG files occupy 0.44MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb/css/vendor/jquery-ui/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
qc-support-promo-page/images/iList-icon-256x256.png | 12.99KB | 6.05KB | ▼ 53.44% |
inc/cmb/css/vendor/jquery-ui/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
qc-support-promo-page/images/icon-pack/service-04.png | 1.67KB | 0.90KB | ▼ 46.47% |
assets/images/menu_icon.png | 2.81KB | 0.12KB | ▼ 95.66% |