Benchmarks
Plugin footprint 65% 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: ▲1.07MB] [CPU: ▼3.91ms] Passed 4 tests
A check of server-side resources used by My Album Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲1.00 | 33.45 ▼8.77 |
Dashboard /wp-admin | 4.43 ▲1.08 | 59.69 ▼5.29 |
Posts /wp-admin/edit.php | 4.46 ▲1.10 | 64.32 ▲12.73 |
Add New Post /wp-admin/post-new.php | 7.00 ▲1.11 | 92.62 ▼13.79 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 47.04 ▲12.20 |
Album Category /wp-admin/edit-tags.php?taxonomy=mygallery_category&post_type=mygallery | 4.43 | 45.47 |
All Album /wp-admin/edit.php?post_type=mygallery | 4.43 | 46.74 |
Add New Album /wp-admin/post-new.php?post_type=mygallery | 4.49 | 62.31 |
Album options /wp-admin/admin.php?page=algal_admin_page | 4.43 | 44.63 |
Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/my-album-gallery/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 202 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_myg_comments |
wp_myg_likes |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for My Album Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.89 ▼0.49 | 11.79 ▲10.00 | 41.19 ▼2.47 |
Dashboard /wp-admin | 2,269 ▲69 | 4.83 ▼1.04 | 110.07 ▲7.13 | 40.76 ▼2.97 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.06 ▲0.01 | 36.58 ▼0.20 | 34.38 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,566 ▲33 | 17.68 ▼5.60 | 711.33 ▲95.78 | 48.31 ▼3.21 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.28 ▲0.00 | 106.65 ▲4.32 | 46.17 ▲0.65 |
Album Category /wp-admin/edit-tags.php?taxonomy=mygallery_category&post_type=mygallery | 1,322 | 2.14 | 32.04 | 34.07 |
All Album /wp-admin/edit.php?post_type=mygallery | 1,180 | 2.03 | 52.37 | 41.05 |
Add New Album /wp-admin/post-new.php?post_type=mygallery | 2,703 | 7.83 | 172.19 | 71.71 |
Album options /wp-admin/admin.php?page=algal_admin_page | 2,928 | 4.01 | 97.65 | 82.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_myg_likes
- wp_myg_comments
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/my-album-gallery/controllers/admin/metaboxes/style.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-album-gallery/controllers/functions.php:42
- > PHP Fatal error
require_once(): Failed opening required 'MYG_PATHcontrollers/constants.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-album-gallery/controllers/includes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/my-album-gallery/mygallery-single.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/my-album-gallery/controllers/admin/metaboxes/mygallery_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/my-album-gallery/mygallery-archive.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/my-album-gallery/my-album-gallery.php:13
- > PHP Warning
Use of undefined constant MYG_PATH - assumed 'MYG_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-album-gallery/controllers/includes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-album-gallery/admin/class-mygallery-options.php:8
- > PHP Warning
require_once(MYG_PATHcontrollers/constants.php): failed to open stream: No such file or directory in wp-content/plugins/my-album-gallery/controllers/includes.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== my-album-gallery ===
)
my-album-gallery/my-album-gallery.php 92% from 13 tests
The main PHP script in "My Album Gallery" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 325 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin23,807 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 1,601 | 1,236 | 13,058 |
PHP | 27 | 1,069 | 1,963 | 5,994 |
CSS | 12 | 443 | 278 | 4,062 |
PO File | 4 | 276 | 352 | 659 |
SVG | 2 | 0 | 0 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 47.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 380.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 8 | 3.12% |
▷ Public methods | 245 | 95.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 4.30% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
110 PNG files occupy 0.44MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/g8Duj.png | 2.09KB | 1.67KB | ▼ 20.00% |
images/bg/bg45.png | 2.55KB | 1.38KB | ▼ 45.79% |
images/bg/bg15.png | 2.83KB | 0.13KB | ▼ 95.51% |
admin/js/FancyCheckbox/images/iphone.png | 6.26KB | 2.56KB | ▼ 59.13% |
images/bg/bg44.png | 2.54KB | 1.44KB | ▼ 43.37% |