Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.65ms] Passed 4 tests
This is a short check of server-side resources used by SX Photo Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.82 ▼4.44 |
Dashboard /wp-admin | 3.35 ▲0.04 | 44.55 ▼7.97 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.34 ▲7.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.82 ▼5.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.00 ▼4.40 |
All Photos /wp-admin/edit.php?post_type=sx_photo_galleries | 3.32 | 35.77 |
Add New Photo /wp-admin/post-new.php?post_type=sx_photo_galleries | 3.44 | 52.23 |
Manage SX Photo Galleries /wp-admin/edit-tags.php?taxonomy=sx_gallery_names&post_type=sx_photo_galleries | 3.26 | 33.67 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SX Photo Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.53 ▼0.88 | 7.74 ▲5.87 | 41.85 ▼5.70 |
Dashboard /wp-admin | 2,249 ▲61 | 5.84 ▲0.99 | 105.39 ▼11.21 | 70.37 ▲22.96 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.00 ▼0.04 | 38.04 ▲3.88 | 33.24 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 22.99 ▲4.79 | 690.90 ▲45.87 | 56.23 ▼20.88 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.19 ▼0.12 | 98.66 ▼7.98 | 76.83 ▲33.74 |
Settings /wp-admin/sxpg-settings.php | 26 | 0.44 | 0.07 | 13.69 |
All Photos /wp-admin/edit.php?post_type=sx_photo_galleries | 1,180 | 1.97 | 33.51 | 28.31 |
Add New Photo /wp-admin/post-new.php?post_type=sx_photo_galleries | 2,974 | 7.74 | 177.46 | 131.80 |
Manage SX Photo Galleries /wp-admin/edit-tags.php?taxonomy=sx_gallery_names&post_type=sx_photo_galleries | 1,299 | 2.13 | 27.69 | 30.93 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sx-photo-gallery/components/shortcode.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sx-photo-gallery/init.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/sxpg-settings.php
- > Network (severe)
wp-admin/sxpg-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=sx_gallery_names&post_type=sx_photo_galleries
- > Network (severe)
wp-content/plugins/sx_photo_gallery/assets/images/sx_photo_gallery.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=sx_photo_galleries
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=sx_photo_galleries 2012:4 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Screenshot #1 (SX Photo Gallery skin setting.) image missing
- Requires php: The plugin version is formatted incorrectly
sx-photo-gallery/init.php 92% from 13 tests
The main PHP file in "SX Photo Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sx-photo-gallery.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,559 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 93 | 0 | 497 |
Sass | 4 | 66 | 0 | 375 |
PHP | 5 | 82 | 113 | 347 |
JavaScript | 2 | 71 | 0 | 326 |
Markdown | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.53MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 14.62KB | 5.95KB | ▼ 59.30% |
assets/screenshot-2.png | 249.07KB | 79.27KB | ▼ 68.17% |
assets/images/sx_photo_gallery.png | 0.72KB | 0.73KB | 0.00% |
assets/screenshot-3.png | 36.54KB | 10.94KB | ▼ 70.06% |
assets/images/icon-sprite.png | 0.90KB | 0.47KB | ▼ 47.87% |