Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.44MB] [CPU: ▼3.18ms] Passed 4 tests
Server-side resources used by Image grid with hover effects
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 46.16 ▲10.69 |
Dashboard /wp-admin | 3.83 ▲0.48 | 50.60 ▼10.10 |
Posts /wp-admin/edit.php | 3.85 ▲0.49 | 56.28 ▲8.90 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 85.51 ▼18.65 |
Media Library /wp-admin/upload.php | 3.72 ▲0.50 | 40.61 ▲7.13 |
Image Grid /wp-admin/post-new.php?post_type=imagegrid | 4.02 | 46.83 |
All Image Grid /wp-admin/edit.php?post_type=imagegrid | 3.80 | 41.30 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 341 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Image grid with hover effects: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲190 | 13.86 ▼0.48 | 9.62 ▲7.78 | 43.69 ▲2.17 |
Dashboard /wp-admin | 2,237 ▲60 | 5.59 ▼0.07 | 97.03 ▲11.90 | 36.71 ▼4.37 |
Posts /wp-admin/edit.php | 2,145 ▲45 | 2.06 ▲0.11 | 44.10 ▲9.39 | 35.36 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,560 ▲32 | 23.48 ▲0.53 | 712.86 ▲132.61 | 56.63 ▲10.16 |
Media Library /wp-admin/upload.php | 1,442 ▲39 | 4.28 ▲0.03 | 103.31 ▲6.61 | 44.78 ▲0.73 |
Image Grid /wp-admin/post-new.php?post_type=imagegrid | 1,296 | 1.51 | 7.20 | 31.50 |
All Image Grid /wp-admin/edit.php?post_type=imagegrid | 1,114 | 1.97 | 33.32 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=imagegrid
- > Compile error in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Checkbox.php+35
Declaration of CMB2_Type_Checkbox::render() must be compatible with CMB2_Type_Text::render($args = Array)
SRP 0% 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
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/image-grid-with-hover-effects/inc/css/index.php
- > /wp-content/plugins/image-grid-with-hover-effects/inc/img/index.php
- > /wp-content/plugins/image-grid-with-hover-effects/inc/index.php
- > /wp-content/plugins/image-grid-with-hover-effects/index.php
- > /wp-content/plugins/image-grid-with-hover-effects/inc/js/index.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-grid-with-hover-effects/inc/cmb2/init.php:120
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=imagegrid
- > Network (severe)
wp-content/plugins/image-grid-with-hover-effects/inc/admin/css/wg-ighe-admin.css?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=imagegrid
- > Network (severe)
wp-content/plugins/image-grid-with-hover-effects/inc/admin/js/wg-ighe-admin.js?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: "www.webgensis.com"
image-grid-with-hover-effects/image-grid-with-hover-effects.php Passed 13 tests
The principal PHP file in "Image grid with hover effects" v. 1.0 is loaded by WordPress automatically on each request
129 characters long description:
Create attractive image grids with hover with title, description and link on hover. Place it anywhere with easy to use shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin43,425 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 52 | 1,728 | 4,678 | 6,034 |
CSS | 13 | 1,002 | 1,034 | 4,456 |
JavaScript | 6 | 291 | 275 | 963 |
Markdown | 2 | 144 | 0 | 428 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.28 |
▷ 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 | 430 | |
▷ Static methods | 67 | 15.58% |
▷ Public methods | 359 | 83.49% |
▷ Protected methods | 68 | 15.81% |
▷ Private methods | 3 | 0.70% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 9 | 60.00% |
▷ Class constants | 6 | 40.00% |
▷ Public constants | 6 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
inc/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
inc/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |