Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼170.12ms] Passed 4 tests
Server-side resources used by AMP & Non-AMP Auto Ads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 40.29 ▲8.00 |
Dashboard /wp-admin | 3.08 ▲0.03 | 47.50 ▲10.42 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 42.25 ▼2.52 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 91.95 ▼680.58 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 27.89 ▼5.39 |
AMP non-AMP Ads /wp-admin/options-general.php?page=ampnonampads | 3.06 | 27.37 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for AMP & Non-AMP Auto Ads
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,821 ▲225 | 16.25 ▲0.61 | 11.93 ▲2.85 | 45.84 ▼4.28 |
Dashboard /wp-admin | 2,982 ▲52 | 5.93 ▼0.21 | 135.60 ▼4.86 | 122.23 ▲17.95 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.71 ▼0.01 | 63.81 ▲1.57 | 92.22 ▲2.53 |
Add New Post /wp-admin/post-new.php | 1,879 ▼10 | 19.06 ▲3.05 | 342.97 ▼51.75 | 106.20 ▼2.66 |
Media Library /wp-admin/upload.php | 1,816 ▲6 | 5.02 ▼0.03 | 139.44 ▼14.20 | 117.48 ▼0.66 |
AMP non-AMP Ads /wp-admin/options-general.php?page=ampnonampads | 1,532 | 3.64 | 79.87 | 98.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ampnonampads
- > Notice in wp-content/plugins/amp-non-amp-auto-ads/admin/partials/ampnonampads-admin-display.php+38
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/amp-non-amp-auto-ads/public/partials/ampnonampads-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/amp-non-amp-auto-ads/admin/partials/ampnonampads-admin-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=ampnonampads
- > Network (severe)
http://whatsq.com/wp-content/uploads/2018/04/ANA.png - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== amp-non-amp-auto-ads ===
) - Donate link: Invalid URI found ("")
amp-non-amp-auto-ads/ampnonampads.php 85% from 13 tests
"AMP & Non-AMP Auto Ads" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("amp-non-amp-auto-ads.php" instead of "ampnonampads.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin441 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 199 | 585 | 435 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 1.42MB with 0.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 85.63KB | 38.68KB | ▼ 54.83% |
assets/screenshot-2.png | 207.70KB | 50.79KB | ▼ 75.54% |
assets/banner-772x250.png | 154.08KB | 47.00KB | ▼ 69.50% |
assets/icon-256x256.png | 17.41KB | 7.19KB | ▼ 58.73% |
assets/1500x500.png | 421.35KB | 125.41KB | ▼ 70.24% |