100% adwire

Code Review | Adwire

WordPress plugin Adwire scored 100% from 54 tests.

About plugin

  • Plugin page: adwire
  • Plugin version: 0.3.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.0
  • WordPress version: 5.9.2
  • First release: Oct 20, 2021
  • Latest release: Jan 25, 2022
  • Number of updates: 25
  • Update frequency: every 3.9 days
  • Top authors: adwire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 289 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2260.41 ▼0.77
Dashboard /wp-admin3.61 ▲0.1938.04 ▲2.10
Posts /wp-admin/edit.php3.83 ▲0.1953.63 ▲13.88
Add New Post /wp-admin/post-new.php7.07 ▲0.10101.45 ▼1,165.46
Media Library /wp-admin/upload.php3.48 ▲0.1827.94 ▼0.64
Adwire Settings /wp-admin/options-general.php?page=adwire3.4529.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

Browser metrics Passed 4 tests

Adwire: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲5115.88 ▼0.096.47 ▼1.152.96 ▼1.15
Dashboard /wp-admin2,899 ▲386.19 ▲0.03120.30 ▼18.33159.39 ▼3.26
Posts /wp-admin/edit.php2,695 ▲383.24 ▼0.0170.55 ▲5.14151.37 ▲9.05
Add New Post /wp-admin/post-new.php1,668 ▼2216.32 ▼4.28402.04 ▼41.07154.21 ▲0.33
Media Library /wp-admin/upload.php1,761 ▲605.56 ▲0.01144.70 ▲0.89186.91 ▼5.65
Adwire Settings /wp-admin/options-general.php?page=adwire1,8602.7360.72137.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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