Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.18MB] [CPU: ▼141.90ms] Passed 4 tests
An overview of server-side resources used by WPteam Google Adsense
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.16 | 38.56 ▲3.33 |
Dashboard /wp-admin | 3.30 ▲0.24 | 49.96 ▲2.95 |
Posts /wp-admin/edit.php | 3.35 ▲0.24 | 46.27 ▼0.86 |
Add New Post /wp-admin/post-new.php | 5.59 ▲0.16 | 90.09 ▼572.56 |
Media Library /wp-admin/upload.php | 3.18 ▲0.18 | 35.19 ▲2.87 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WPteam Google Adsense: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,843 ▲247 | 16.32 ▲0.72 | 11.35 ▲1.13 | 50.04 ▲0.37 |
Dashboard /wp-admin | 3,001 ▲67 | 6.06 ▼0.01 | 145.65 ▲2.90 | 112.78 ▲4.15 |
Posts /wp-admin/edit.php | 2,770 ▲31 | 2.69 ▲0.00 | 65.40 ▼25.03 | 85.83 ▼22.15 |
Add New Post /wp-admin/post-new.php | 1,698 ▲15 | 18.81 ▲1.70 | 387.66 ▲31.95 | 113.43 ▲4.85 |
Media Library /wp-admin/upload.php | 1,835 ▲25 | 5.01 ▼0.01 | 152.23 ▼4.49 | 120.53 ▲2.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wpteam-google-adsense/public/partials/wpteam-ggadsense-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpteam-google-adsense/admin/partials/wpteam-ggadsense-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #0, #0, #0, #0, #0 in wpteam-google-adsense/assets to your readme.txt
wpteam-google-adsense/wpteam-ggadsense.php 85% from 13 tests
Analyzing the main PHP file in "WPteam Google Adsense" version 1.0.0
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpteam-google-adsense.php" instead of "wpteam-ggadsense.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
Good job! No executable or dangerous file extensions detected736 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 148 | 672 | 497 |
PO File | 1 | 41 | 145 | 107 |
JSON | 1 | 0 | 0 | 82 |
CSS | 2 | 3 | 8 | 48 |
JavaScript | 1 | 0 | 0 | 1 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 12.50% |
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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/description_00.png | 64.78KB | 24.07KB | ▼ 62.85% |
admin/img/description_01.png | 75.95KB | 28.47KB | ▼ 62.51% |