Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.29ms] Passed 4 tests
This is a short check of server-side resources used by pixi Image Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.26 ▼4.40 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.91 ▼1.13 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.07 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.66 ▼3.57 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.47 ▲1.67 |
Add New /wp-admin/post-new.php?post_type=pixi_gallery_items | 3.38 | 48.96 |
Category /wp-admin/edit-tags.php?taxonomy=pixi_gallery_cat&post_type=pixi_gallery_items | 3.26 | 32.90 |
Pixi Gallerys /wp-admin/edit.php?post_type=pixi_gallery_items | 3.30 | 37.37 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for pixi Image Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 14.85 ▲0.47 | 1.82 ▲0.22 | 40.68 ▲0.67 |
Dashboard /wp-admin | 2,252 ▲61 | 5.81 ▼0.10 | 97.07 ▼0.05 | 40.05 ▼2.46 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.00 ▼0.01 | 35.43 ▼3.60 | 35.50 ▼2.37 |
Add New Post /wp-admin/post-new.php | 1,573 ▲39 | 23.49 ▲0.26 | 664.26 ▼25.46 | 74.54 ▲25.95 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.29 ▲0.09 | 110.82 ▲11.61 | 48.00 ▼0.96 |
Add New /wp-admin/post-new.php?post_type=pixi_gallery_items | 2,296 | 7.82 | 167.51 | 65.59 |
Category /wp-admin/edit-tags.php?taxonomy=pixi_gallery_cat&post_type=pixi_gallery_items | 1,314 | 2.28 | 27.86 | 29.30 |
Pixi Gallerys /wp-admin/edit.php?post_type=pixi_gallery_items | 1,118 | 1.96 | 30.72 | 30.14 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pixi-image-gallery/includes/widgets/layout/layout-2.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pixi-image-gallery/includes/admin/class-pixi-helper.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pixi-image-gallery/includes/widgets/layout/layout-1.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.), #2 (This is the second screen shot)
pixi-image-gallery/pixi-image-gallery-lite.php 85% from 13 tests
The main file in "pixi Image Gallery" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("pixi-image-gallery.php" instead of "pixi-image-gallery-lite.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,231 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 441 | 22 | 2,504 |
PHP | 14 | 513 | 684 | 2,037 |
SVG | 1 | 0 | 0 | 1,616 |
JavaScript | 7 | 26 | 43 | 74 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 50 | |
▷ Static methods | 3 | 6.00% |
▷ Public methods | 41 | 82.00% |
▷ Protected methods | 6 | 12.00% |
▷ Private methods | 3 | 6.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin