Benchmarks
Plugin footprint 83% 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: ▼0.55MB] [CPU: ▼16.06ms] Passed 4 tests
This is a short check of server-side resources used by Easy Video and Image Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 43.67 ▲6.49 |
Dashboard /wp-admin | 3.45 ▲0.11 | 49.08 ▼11.67 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 54.53 ▲8.30 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.60 | 35.43 ▼64.06 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.42 ▲5.02 |
Add New /wp-admin/post-new.php?post_type=evigallery | 3.27 | 32.78 |
Settings /wp-admin/edit.php?post_type=evigallery&page=evigallery_settings | 3.36 | 37.10 |
Galleries /wp-admin/edit.php?post_type=evigallery | 3.43 | 39.01 |
Albums of galleries /wp-admin/edit-tags.php?taxonomy=evigallery_album&post_type=evigallery | 3.38 | 40.44 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Video and Image Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,193 ▲447 | 15.23 ▲0.85 | 6.99 ▲5.31 | 40.72 ▼0.64 |
Dashboard /wp-admin | 2,411 ▲220 | 6.48 ▲0.64 | 130.19 ▲28.63 | 40.37 ▼1.54 |
Posts /wp-admin/edit.php | 2,317 ▲225 | 3.41 ▲1.43 | 48.40 ▲13.62 | 31.81 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,730 ▲197 | 22.65 ▼0.69 | 621.24 ▼54.97 | 31.69 ▼25.29 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.28 ▲0.02 | 79.49 ▼29.65 | 43.36 ▼6.26 |
Add New /wp-admin/post-new.php?post_type=evigallery | 1,796 | 3.63 | 65.06 | 90.49 |
Settings /wp-admin/edit.php?post_type=evigallery&page=evigallery_settings | 1,056 | 3.18 | 38.29 | 26.27 |
Galleries /wp-admin/edit.php?post_type=evigallery | 1,278 | 3.45 | 44.44 | 26.30 |
Albums of galleries /wp-admin/edit-tags.php?taxonomy=evigallery_album&post_type=evigallery | 1,490 | 3.12 | 43.21 | 27.84 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=evigallery
- > Notice in wp-content/plugins/easy-video-and-image-gallery/includes/meta_box.php+122
Undefined index: evigallery-items-ids
- > GET request to /wp-admin/post-new.php?post_type=evigallery
- > Warning in wp-content/plugins/easy-video-and-image-gallery/includes/meta_box.php+124
count(): Parameter must be an array or an object that implements Countable
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: responsive, easy, video, media, album...
easy-video-and-image-gallery/easy-video-and-image-gallery.php 77% from 13 tests
This is the main PHP file of "Easy Video and Image Gallery" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
- Domain Path: The domain path must begin with a forward slash character ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,125 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 80 | 18 | 583 |
JavaScript | 3 | 21 | 5 | 253 |
CSS | 2 | 5 | 0 | 180 |
PO File | 1 | 68 | 152 | 109 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
images/controls.png | 4.61KB | 2.23KB | ▼ 51.70% |