Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲0.64ms] Passed 4 tests
A check of server-side resources used by Automatic Galleries
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 48.19 ▲3.75 |
Dashboard /wp-admin | 3.47 ▲0.16 | 54.59 ▲5.53 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 56.48 ▲5.38 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 88.35 ▼12.11 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.94 ▲8.21 |
Automatic Media Galleries /wp-admin/options-general.php?page=simple-media-Galleries | 3.36 | 38.77 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
simple_media_gallery_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Automatic Galleries
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.09 | 1.65 ▼0.28 | 41.64 ▼3.89 |
Dashboard /wp-admin | 2,193 ▲19 | 5.56 ▼0.06 | 88.93 ▼3.09 | 41.97 ▼0.55 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.01 | 39.20 ▼0.11 | 39.55 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.41 ▲5.75 | 673.56 ▼39.09 | 58.58 ▼0.99 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▼0.01 | 100.41 ▼16.31 | 43.78 ▼3.17 |
Automatic Media Galleries /wp-admin/options-general.php?page=simple-media-Galleries | 927 | 1.81 | 28.28 | 30.43 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- simple_media_gallery_options
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-media-taxonomy-galleries/simple-media-galleries-admin.php
- > /wp-content/plugins/simple-media-taxonomy-galleries/simple-media-galleries.php
- > /wp-content/plugins/simple-media-taxonomy-galleries/simple-media-galleries-tags.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-media-taxonomy-galleries/templates/taxonomy-photo_category.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== simple-media-taxonomy-galleries ===
)
simple-media-taxonomy-galleries/simple-media-galleries.php 92% from 13 tests
"Automatic Galleries" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-media-taxonomy-galleries.php" instead of "simple-media-galleries.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
Good job! No executable or dangerous file extensions detected948 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 185 | 172 | 811 |
JavaScript | 2 | 22 | 11 | 137 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 4.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 7 | 22.58% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 1 | 3.23% |
▷ Private methods | 1 | 3.23% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin