Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼293.36ms] Passed 4 tests
Analyzing server-side resources used by AdPlus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.15 | 54.25 ▲3.07 |
Dashboard /wp-admin | 3.51 ▲0.10 | 34.63 ▲0.93 |
Posts /wp-admin/edit.php | 3.74 ▲0.09 | 36.95 ▼0.74 |
Add New Post /wp-admin/post-new.php | 6.98 ▲0.00 | 94.50 ▼1,171.73 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 23.28 ▼1.90 |
AdPlus.io /wp-admin/options-general.php?page=adplus | 3.36 | 29.74 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for AdPlus
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,918 ▲164 | 16.63 ▲0.97 | 11.72 ▲5.70 | 2.73 ▼0.22 |
Dashboard /wp-admin | 2,901 ▲40 | 6.24 ▲0.09 | 116.58 ▼17.68 | 158.93 ▼7.14 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.24 ▲0.01 | 65.90 ▲2.38 | 142.62 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,668 ▼84 | 17.08 ▼4.01 | 424.66 ▼71.54 | 155.87 ▲2.84 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 5.52 ▲0.02 | 144.48 ▲4.62 | 187.70 ▼7.95 |
AdPlus.io /wp-admin/options-general.php?page=adplus | 1,026 | 2.62 | 56.09 | 125.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/adplus/public/partials/adplus-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/adplus/admin/partials/adplus-admin-display.php:17
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: adplus, monetize
adplus/adplus.php Passed 13 tests
The main file in "AdPlus" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Плагин интеграции с сервисом AdPlus.io
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 plugin442 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 149 | 568 | 421 |
JavaScript | 2 | 5 | 0 | 11 |
CSS | 2 | 2 | 4 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 7 | 18.92% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 158.89KB | 55.60KB | ▼ 65.01% |