89% lupon-media-prebid-header-bidding

Code Review | Lupon Media Prebid - Header Bidding

WordPress plugin Lupon Media Prebid - Header Bidding scored89%from 54 tests.

About plugin

  • Plugin page: lupon-media-prebi...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 7, 2022
  • Latest release: Nov 7, 2022
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: luponmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by Lupon Media Prebid - Header Bidding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.26 ▼1.28
Dashboard /wp-admin3.34 ▲0.0445.91 ▼4.60
Posts /wp-admin/edit.php3.46 ▲0.1055.66 ▲7.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.14 ▼17.59
Media Library /wp-admin/upload.php3.27 ▲0.0436.83 ▼0.98

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lupon Media Prebid - Header Bidding
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7013.21 ▼1.194.78 ▲2.8941.03 ▼3.61
Dashboard /wp-admin2,237 ▲315.85 ▲0.94116.07 ▲12.1142.86 ▲0.71
Posts /wp-admin/edit.php2,116 ▲162.00 ▼0.0143.02 ▲5.0336.53 ▼0.72
Add New Post /wp-admin/post-new.php1,539 ▼1917.52 ▼0.96657.77 ▼17.5562.87 ▲0.96
Media Library /wp-admin/upload.php1,413 ▲134.16 ▼0.12107.51 ▲1.3542.04 ▼4.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: monetization, conversion, advertising

lupon-media-prebid-header-bidding/lupon-media-prebid-header-bidding.php 85% from 13 tests

"Lupon Media Prebid - Header Bidding" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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 plugin251 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3269237
JavaScript10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG files were detected