Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼291.19ms] Passed 4 tests
An overview of server-side resources used by Adwire
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.22 | 60.41 ▼0.77 |
Dashboard /wp-admin | 3.61 ▲0.19 | 38.04 ▲2.10 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 53.63 ▲13.88 |
Add New Post /wp-admin/post-new.php | 7.07 ▲0.10 | 101.45 ▼1,165.46 |
Media Library /wp-admin/upload.php | 3.48 ▲0.18 | 27.94 ▼0.64 |
Adwire Settings /wp-admin/options-general.php?page=adwire | 3.45 | 29.10 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options |
---|
adwire_settings |
Browser metrics Passed 4 tests
Adwire: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲51 | 15.88 ▼0.09 | 6.47 ▼1.15 | 2.96 ▼1.15 |
Dashboard /wp-admin | 2,899 ▲38 | 6.19 ▲0.03 | 120.30 ▼18.33 | 159.39 ▼3.26 |
Posts /wp-admin/edit.php | 2,695 ▲38 | 3.24 ▼0.01 | 70.55 ▲5.14 | 151.37 ▲9.05 |
Add New Post /wp-admin/post-new.php | 1,668 ▼22 | 16.32 ▼4.28 | 402.04 ▼41.07 | 154.21 ▲0.33 |
Media Library /wp-admin/upload.php | 1,761 ▲60 | 5.56 ▲0.01 | 144.70 ▲0.89 | 186.91 ▼5.65 |
Adwire Settings /wp-admin/options-general.php?page=adwire | 1,860 | 2.73 | 60.72 | 137.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: vpaid, adwire, vast, simid, monetization...
adwire/adwire.php Passed 13 tests
"Adwire" version 0.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
An easy way to monetize embedded YouTube videos on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin329 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Pascal | 3 | 209 | 737 | 157 |
CSS | 4 | 15 | 1 | 87 |
JavaScript | 1 | 25 | 0 | 72 |
PHP | 2 | 7 | 21 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin