Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼178.09ms] Passed 4 tests
A check of server-side resources used by Okiano Google Ads
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▲0.15 | 46.36 ▲7.74 |
Dashboard /wp-admin | 3.28 ▲0.22 | 58.01 ▼9.91 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 57.25 ▲6.34 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 102.89 ▼705.38 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 41.59 ▼3.39 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 1 new option
New WordPress options |
---|
woocommerce_okn_wcintegration_settings |
Browser metrics Passed 4 tests
Okiano Google Ads: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲145 | 15.98 ▲0.46 | 8.27 ▼5.89 | 46.15 ▼0.79 |
Dashboard /wp-admin | 2,998 ▲64 | 5.98 ▲0.02 | 159.41 ▼2.34 | 145.10 ▲29.15 |
Posts /wp-admin/edit.php | 2,793 ▲54 | 2.74 ▲0.02 | 70.88 ▲4.26 | 90.04 ▼8.11 |
Add New Post /wp-admin/post-new.php | 1,645 ▲54 | 21.60 ▲2.79 | 314.79 ▼118.64 | 110.36 ▼10.30 |
Media Library /wp-admin/upload.php | 1,789 ▼18 | 5.05 ▲0.02 | 147.25 ▼37.39 | 148.28 ▲23.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 1 option in the database
- woocommerce_okn_wcintegration_settings
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
okiano-advertising-for-google-ads/okiano-advertising-for-google-ads.php 85% from 13 tests
The main PHP script in "Okiano Google Ads" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.7" instead of "2.2")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin1,027 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 259 | 551 | 928 |
CSS | 1 | 10 | 0 | 64 |
JavaScript | 1 | 1 | 1 | 22 |
JSON | 2 | 0 | 0 | 12 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 24 | 33.33% |
▷ Public methods | 68 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.56% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 20 | |
▷ Global constants | 17 | 85.00% |
▷ Class constants | 3 | 15.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
okiano-google-ads-transparent.png | 14.02KB | 5.37KB | ▼ 61.72% |