90% adwire

Code Review | Adwire

WordPress plugin Adwire scored90%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: 6.3.1
  • 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 /575 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1539.10 ▼9.78
Dashboard /wp-admin3.49 ▲0.1953.43 ▲0.86
Posts /wp-admin/edit.php3.61 ▲0.2551.05 ▼2.81
Add New Post /wp-admin/post-new.php6.07 ▲0.1990.87 ▼0.64
Media Library /wp-admin/upload.php3.42 ▲0.1940.30 ▲1.82
Adwire Settings /wp-admin/options-general.php?page=adwire3.3836.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

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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.24 ▼0.391.63 ▼0.2341.36 ▼3.04
Dashboard /wp-admin2,206 ▲295.62 ▼0.0187.18 ▼14.5537.02 ▼11.49
Posts /wp-admin/edit.php2,108 ▲81.97 ▼0.0438.78 ▲1.0936.56 ▼2.57
Add New Post /wp-admin/post-new.php1,534 ▲623.06 ▲0.31669.87 ▲2.0370.74 ▲13.28
Media Library /wp-admin/upload.php1,474 ▲774.17 ▲0.02100.45 ▼4.1345.96 ▲3.79
Adwire Settings /wp-admin/options-general.php?page=adwire1,5492.3126.8435.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


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

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 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

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