Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲7.12MB] [CPU: ▲47.83ms] 50% from 4 tests
This is a short check of server-side resources used by MAS Videos
Please fix the following
- RAM: Try to keep total memory usage under 10MB (currently 10.30MB on /wp-admin/edit-tags.php?taxonomy=tv_show_tag&post_type=tv_show)
- Extra RAM: The extra memory usage must be under 5MB (currently 7.12MB on /wp-admin/edit-tags.php?taxonomy=tv_show_tag&post_type=tv_show)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.61 ▲7.14 | 85.38 ▲42.95 |
Dashboard /wp-admin | 10.45 ▲7.15 | 93.99 ▲38.99 |
Posts /wp-admin/edit.php | 10.50 ▲7.14 | 112.09 ▲60.86 |
Add New Post /wp-admin/post-new.php | 13.74 ▲7.86 | 157.82 ▲48.53 |
Media Library /wp-admin/upload.php | 10.26 ▲7.03 | 108.59 ▲72.15 |
All Movies /wp-admin/edit.php?post_type=movie | 10.43 | 87.99 |
Add New /wp-admin/post-new.php?post_type=person | 13.78 | 136.45 |
Add New /wp-admin/post-new.php?post_type=tv_show | 13.83 | 149.81 |
Add New /wp-admin/post-new.php?post_type=movie | 13.89 | 153.68 |
Tags /wp-admin/edit-tags.php?taxonomy=person_tag&post_type=person | 10.30 | 94.25 |
Add New /wp-admin/post-new.php?post_type=video | 13.84 | 146.39 |
Categories /wp-admin/edit-tags.php?taxonomy=video_cat&post_type=video | 10.30 | 87.44 |
Attributes /wp-admin/edit.php?post_type=tv_show&page=tv_show_attributes | 10.35 | 74.82 |
Video Import /wp-admin/edit.php?post_type=video&page=video_importer | 10.54 | 79.61 |
Tags /wp-admin/edit-tags.php?taxonomy=tv_show_tag&post_type=tv_show | 10.30 | 75.80 |
Server storage [IO: ▲10.30MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 450 new files
Database: 1 new table, 34 new options
New tables |
---|
wp_masvideos_attribute_taxonomies |
New WordPress options |
---|
widget_masvideos_widget_movies_genres |
widget_masvideos_movies_filter_widget |
widget_masvideos_movies_rating_filter |
widget_masvideos_movies_year_filter |
widget_masvideos_tv_shows_widget |
widget_masvideos_widget_movies_layered_nav |
widget_masvideos_tv_shows_rating_filter |
widget_masvideos_movies_widget |
masvideos_meta_box_errors |
widget_masvideos_widget_videos_categories |
... |
Browser metrics Passed 4 tests
A check of browser resources used by MAS Videos
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,319 ▲558 | 16.00 ▲1.72 | 8.07 ▲6.39 | 41.91 ▼5.63 |
Dashboard /wp-admin | 2,561 ▲387 | 6.82 ▲1.20 | 125.21 ▲32.76 | 44.84 ▼1.68 |
Posts /wp-admin/edit.php | 2,482 ▲400 | 3.88 ▲1.88 | 73.52 ▲39.15 | 35.98 ▼5.03 |
Add New Post /wp-admin/post-new.php | 1,855 ▲327 | 22.34 ▼0.91 | 615.46 ▼72.88 | 35.81 ▼35.97 |
Media Library /wp-admin/upload.php | 1,622 ▲222 | 4.67 ▲0.47 | 112.52 ▲11.94 | 47.79 ▲7.26 |
All Movies /wp-admin/edit.php?post_type=movie | 1,512 | 3.90 | 80.63 | 34.94 |
Add New /wp-admin/post-new.php?post_type=person | 6,949 | 24.44 | 1,060.24 | 96.40 |
Add New /wp-admin/post-new.php?post_type=tv_show | 7,099 | 24.83 | 864.45 | 75.55 |
Add New /wp-admin/post-new.php?post_type=movie | 2,648 | 19.56 | 875.48 | 83.80 |
Tags /wp-admin/edit-tags.php?taxonomy=person_tag&post_type=person | 1,651 | 3.85 | 68.71 | 36.04 |
Add New /wp-admin/post-new.php?post_type=video | 6,988 | 23.99 | 924.71 | 73.36 |
Categories /wp-admin/edit-tags.php?taxonomy=video_cat&post_type=video | 1,702 | 3.80 | 48.59 | 77.32 |
Attributes /wp-admin/edit.php?post_type=tv_show&page=tv_show_attributes | 1,344 | 3.70 | 51.92 | 34.63 |
Video Import /wp-admin/edit.php?post_type=video&page=video_importer | 1,348 | 3.63 | 44.08 | 38.92 |
Tags /wp-admin/edit-tags.php?taxonomy=tv_show_tag&post_type=tv_show | 1,651 | 3.78 | 47.81 | 30.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_masvideos_attribute_taxonomies
- This plugin did not uninstall successfully, leaving 34 options in the database
- widget_masvideos_movies_tags_filter_widget
- widget_masvideos_movies_widget
- masvideos_version
- widget_masvideos_movies_filter_widget
- widget_masvideos_videos_widget
- widget_masvideos_videos_tags_filter_widget
- current_theme_supports_masvideos
- widget_masvideos_tv_shows_tags_filter_widget
- widget_masvideos_videos_filter_widget
- masvideos_db_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'MasVideos_Widget' not found in wp-content/plugins/masvideos/includes/widgets/class-masvideos-videos-widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'MasVideos_Widget' not found in wp-content/plugins/masvideos/includes/widgets/class-masvideos-movies-widget.php:5
- > PHP Fatal error
Uncaught Error: Class 'MasVideos_Widget' not found in wp-content/plugins/masvideos/includes/widgets/class-masvideos-tv-shows-widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: videos, movie, movies, tv, television series...
masvideos/masvideos.php Passed 13 tests
The primary PHP file in "MAS Videos" version 1.2.8 is used by WordPress to initiate all plugin functionality
88 characters long description:
This is a free plugin that allows you to to create and list movies, videos and TV shows.
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
Success! There were no dangerous files found in this plugin85,306 lines of code in 428 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 322 | 11,185 | 25,143 | 49,218 |
JavaScript | 74 | 7,745 | 3,870 | 30,656 |
Sass | 10 | 884 | 3 | 4,932 |
CSS | 20 | 95 | 636 | 498 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 35.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 95.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 152 | |
▷ Abstract classes | 7 | 4.61% |
▷ Concrete classes | 145 | 95.39% |
▷ Final classes | 2 | 1.38% |
Methods | 2,061 | |
▷ Static methods | 307 | 14.90% |
▷ Public methods | 1,560 | 75.69% |
▷ Protected methods | 400 | 19.41% |
▷ Private methods | 101 | 4.90% |
Functions | 822 | |
▷ Named functions | 822 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/css/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/css/jquery-ui/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
assets/images/placeholder.png | 24.75KB | 10.16KB | ▼ 58.94% |
assets/css/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |