Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.00ms] Passed 4 tests
Analyzing server-side resources used by Om image gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 43.27 ▲4.95 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.32 ▼4.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.83 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.80 ▼17.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.95 ▼0.30 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_om_image_gallery_states |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
om_image_gallery_states |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Om image gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲232 | 13.58 ▼0.79 | 13.82 ▲12.17 | 53.18 ▲10.02 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.03 | 95.10 ▲4.91 | 39.27 ▼2.00 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.00 | 38.00 ▼0.09 | 36.09 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 23.02 ▼0.22 | 625.65 ▼66.67 | 48.98 ▼10.00 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.28 ▲0.09 | 96.49 ▼16.40 | 42.19 ▼7.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-image-gallery/including_js_css.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/om-image-gallery/include/db.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-image-gallery/form_submit.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/om-image-gallery/html_container.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/om-image-gallery/include/db.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Om image gallery===
)
om-image-gallery/index.php 92% from 13 tests
The primary PHP file in "Om image gallery" version 1.0.05 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("om-image-gallery.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,567 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 80 | 59 | 1,933 |
JavaScript | 4 | 85 | 88 | 386 |
PHP | 6 | 34 | 25 | 248 |
PHP code Passed 2 tests
Analyzing 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.18 |
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 | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/thumb-down-hover.png | 2.33KB | 1.41KB | ▼ 39.43% |
images/thumb-up-hover.png | 2.38KB | 1.40KB | ▼ 40.94% |
images/flag.png | 1.06KB | 0.20KB | ▼ 81.29% |
images/thumb-down.png | 2.28KB | 1.47KB | ▼ 35.59% |
images/next.png | 1.32KB | 1.58KB | 0.00% |