Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.52ms] Passed 4 tests
A check of server-side resources used by WP AD Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.30 ▼26.73 |
Dashboard /wp-admin | 3.31 ▲0.01 | 55.37 ▼2.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 50.75 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 99.07 ▼2.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 40.56 ▲1.45 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP AD Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲115 | 13.82 ▲0.31 | 11.15 ▲8.53 | 38.34 ▼10.88 |
Dashboard /wp-admin | 2,206 ▲3 | 5.85 ▲0.05 | 104.51 ▲5.45 | 48.90 ▲10.40 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.04 | 39.55 ▲3.30 | 35.72 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.60 ▲5.47 | 726.68 ▲76.68 | 50.92 ▼16.29 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.30 ▲0.08 | 106.40 ▲8.46 | 51.69 ▲9.57 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% 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 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-ad-gallery/tinymce/tinymce.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-ad-gallery/wp-ad-gallery.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-ad-gallery/shortcode/shortcode.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Shortcode Option), #4 (WP AD Gallery)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-ad-gallery ===
) - Donate link: Invalid URI ("")
wp-ad-gallery/wp-ad-gallery.php Passed 13 tests
This is the main PHP file of "WP AD Gallery" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
AD Gallery jQuery plugin for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin505 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 12 | 29 | 279 |
PHP | 3 | 63 | 48 | 226 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ad_scroll_back.png | 0.23KB | 0.17KB | ▼ 29.17% |
images/ad_next.png | 0.35KB | 0.26KB | ▼ 25.35% |
images/opa75.png | 0.11KB | 0.09KB | ▼ 13.64% |
images/ad_scroll_forward.png | 0.23KB | 0.16KB | ▼ 28.63% |
tinymce/images/button.png | 0.70KB | 0.61KB | ▼ 13.31% |