Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▼11.13ms] Passed 4 tests
An overview of server-side resources used by Mobile Featured Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.86 ▼4.39 |
Dashboard /wp-admin | 3.80 ▲0.46 | 53.88 ▼10.68 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 51.06 ▲0.05 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 82.54 ▼29.51 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 39.32 ▲5.46 |
Server storage [IO: ▲5.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 377 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
recovery_mode_email_last_sent |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mobile Featured Image
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 13.71 ▼0.61 | 4.34 ▲2.40 | 39.91 ▼5.23 |
Dashboard /wp-admin | 2,229 ▲22 | 5.86 ▲0.94 | 102.85 ▼20.02 | 40.26 ▼8.31 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.10 ▲0.05 | 40.94 ▲0.79 | 36.89 ▲2.56 |
Add New Post /wp-admin/post-new.php | 679 ▼847 | 1.73 ▼15.81 | 23.17 ▼635.01 | 7.12 ▼37.37 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.27 ▲0.01 | 104.24 ▼0.51 | 46.84 ▼0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 53× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Notice
Undefined index: test_root in wp-content/plugins/mobile-featured-image/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/mobile-featured-image/lib/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: featured image, responsive, mobile, srcset, thumbnail
mobile-featured-image/mobile-featured-image.php 92% from 13 tests
The entry point to "Mobile Featured Image" version 0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- 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
Good job! No executable or dangerous file extensions detected96,682 lines of code in 228 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 66 | 2,684 | 5,227 | 9,461 |
CSS | 12 | 1,102 | 1,136 | 4,756 |
Sass | 14 | 265 | 25 | 1,258 |
JavaScript | 5 | 256 | 295 | 1,086 |
Markdown | 5 | 222 | 0 | 621 |
JSON | 3 | 0 | 0 | 122 |
Bourne Shell | 1 | 23 | 11 | 93 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 82 | |
▷ Abstract classes | 11 | 13.41% |
▷ Concrete classes | 71 | 86.59% |
▷ Final classes | 0 | 0.00% |
Methods | 745 | |
▷ Static methods | 95 | 12.75% |
▷ Public methods | 634 | 85.10% |
▷ Protected methods | 103 | 13.83% |
▷ Private methods | 8 | 1.07% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 8 | 57.14% |
▷ Class constants | 6 | 42.86% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
lib/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
lib/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
lib/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |