Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.05ms] 75% from 4 tests
An overview of server-side resources used by Goo Page Level Ads
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 840.52ms on /wp-admin/admin.php?page=goo-tools-plugin-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.38 ▼2.48 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.46 ▼8.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.71 ▲2.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.74 ▼26.69 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.36 ▲1.35 |
Goo Page Level Ads /wp-admin/admin.php?page=goo-pagelevelads-plugin-settings | 3.24 | 30.73 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 3.27 | 840.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
goopagelevelads_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Goo Page Level Ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.04 ▼0.31 | 1.78 ▲0.17 | 43.06 ▲1.03 |
Dashboard /wp-admin | 2,225 ▲48 | 5.58 ▼0.09 | 97.43 ▲11.92 | 43.00 ▲2.79 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.98 ▼0.01 | 34.12 ▼2.54 | 36.76 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,552 ▲21 | 23.13 ▲0.21 | 692.45 ▲31.25 | 53.77 ▲0.14 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.18 ▲0.09 | 97.66 ▼11.77 | 40.55 ▼4.77 |
Goo Page Level Ads /wp-admin/admin.php?page=goo-pagelevelads-plugin-settings | 893 | 2.00 | 21.80 | 26.82 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 826 | 1.99 | 23.74 | 24.04 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- goopagelevelads_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=goo-tools-plugin-settings
- > Warning in wp-content/plugins/goo-page-level-ads/goo_tools.php+35
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/goo-page-level-ads/goo-page-level-ads.php
- > /wp-content/plugins/goo-page-level-ads/admin.php
- > /wp-content/plugins/goo-page-level-ads/goo_tools.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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:
- Screenshots: These screenshots do not have images: #1 (Plugin settings page), #2 (AdSense test message)
goo-page-level-ads/goo-page-level-ads.php Passed 13 tests
"Goo Page Level Ads" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
85 characters long description:
This plugin insert Google AdSense Page Level Ads code into HEAD section of every page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin387 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 66 | 22 | 299 |
CSS | 1 | 13 | 0 | 79 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/logo_bb.png | 6.27KB | 4.06KB | ▼ 35.29% |
admin/r_dot.png | 0.16KB | 0.14KB | ▼ 8.07% |
admin/b_dot.png | 0.19KB | 0.14KB | ▼ 25.25% |
screenshot-1.png | 18.36KB | 8.93KB | ▼ 51.33% |
admin/stared_m.png | 9.19KB | 4.00KB | ▼ 56.51% |