Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼8.09ms] Passed 4 tests
Analyzing server-side resources used by weGallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.08 | 41.86 ▼3.55 |
Dashboard /wp-admin | 3.47 ▲0.09 | 54.72 ▼10.28 |
Posts /wp-admin/edit.php | 3.59 ▲0.19 | 49.40 ▼1.81 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.15 | 90.45 ▼16.70 |
Media Library /wp-admin/upload.php | 3.40 ▲0.13 | 39.46 ▲3.18 |
Add New /wp-admin/post-new.php?post_type=we_gallery | 3.49 | 49.40 |
All Galleries /wp-admin/edit.php?post_type=we_gallery | 3.44 | 39.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by weGallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲147 | 13.94 ▼0.60 | 10.49 ▲8.51 | 42.06 ▼9.95 |
Dashboard /wp-admin | 2,222 ▲42 | 5.65 ▲0.06 | 98.80 ▲1.85 | 42.61 ▲3.18 |
Posts /wp-admin/edit.php | 2,127 ▲30 | 2.00 ▼0.02 | 36.58 ▼3.89 | 35.14 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,749 ▲221 | 23.67 ▲0.75 | 680.07 ▼6.35 | 57.15 ▼5.11 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.25 ▲0.07 | 95.42 ▼8.93 | 46.06 ▼0.74 |
Add New /wp-admin/post-new.php?post_type=we_gallery | 1,576 | 3.61 | 74.53 | 32.67 |
All Galleries /wp-admin/edit.php?post_type=we_gallery | 1,104 | 1.97 | 32.93 | 30.88 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 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 items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/we-gallery/templates/gallery-grid.php
- > /wp-content/plugins/we-gallery/templates/gallery-slider.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/we-gallery/includes/views/image-details-popup.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/we-gallery/templates/gallery-grid.php on line 14
- > PHP Notice
Undefined variable: direction in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 55
- > PHP Notice
Undefined variable: gallery_images in wp-content/plugins/we-gallery/templates/gallery-grid.php on line 14
- > PHP Notice
Undefined variable: gallery_images in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 14
- > PHP Notice
Undefined variable: animation in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 53
- > PHP Notice
Undefined variable: id in wp-content/plugins/we-gallery/templates/gallery-grid.php on line 12
- > PHP Notice
Undefined variable: nav in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 54
- > PHP Notice
Undefined variable: id in wp-content/plugins/we-gallery/templates/gallery-slider.php on line 52
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
we-gallery/gallery.php 92% from 13 tests
The main PHP script in "weGallery" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("we-gallery.php" instead of "gallery.php")
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
Good job! No executable or dangerous file extensions detected2,665 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 181 | 171 | 1,036 |
LESS | 3 | 91 | 28 | 733 |
PHP | 8 | 218 | 308 | 713 |
CSS | 2 | 0 | 0 | 164 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 28 | 90.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 9.68% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |