Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.09ms] Passed 4 tests
This is a short check of server-side resources used by Adwire
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 39.10 ▼9.78 |
Dashboard /wp-admin | 3.49 ▲0.19 | 53.43 ▲0.86 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.05 ▼2.81 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 90.87 ▼0.64 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.30 ▲1.82 |
Adwire Settings /wp-admin/options-general.php?page=adwire | 3.38 | 36.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
adwire_settings |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Adwire
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.24 ▼0.39 | 1.63 ▼0.23 | 41.36 ▼3.04 |
Dashboard /wp-admin | 2,206 ▲29 | 5.62 ▼0.01 | 87.18 ▼14.55 | 37.02 ▼11.49 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.97 ▼0.04 | 38.78 ▲1.09 | 36.56 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,534 ▲6 | 23.06 ▲0.31 | 669.87 ▲2.03 | 70.74 ▲13.28 |
Media Library /wp-admin/upload.php | 1,474 ▲77 | 4.17 ▲0.02 | 100.45 ▼4.13 | 45.96 ▲3.79 |
Adwire Settings /wp-admin/options-general.php?page=adwire | 1,549 | 2.31 | 26.84 | 35.35 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: vpaid, preroll, embed, monetization, vmap...
adwire/adwire.php Passed 13 tests
This is the main PHP file of "Adwire" version 0.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected329 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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin