83% loadads-monetization-tool

Code Review | LoadAds Publisher Code Integration

WordPress plugin LoadAds Publisher Code Integration scored83%from 54 tests.

About plugin

  • Plugin page: loadads-monetizat...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Apr 8, 2018
  • Latest release: Aug 6, 2021
  • Number of updates: 12
  • Update frequency: every 101.6 days
  • Top authors: loadads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /755 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲0.15ms] Passed 4 tests

Server-side resources used by LoadAds Publisher Code Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.93 ▼1.52
Dashboard /wp-admin3.36 ▲0.0651.12 ▲3.81
Posts /wp-admin/edit.php3.47 ▲0.1248.21 ▲5.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.60 ▼6.83
Media Library /wp-admin/upload.php3.28 ▲0.0540.18 ▲5.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 13 new options
New WordPress options
LA_ads_How
widget_recent-posts
LA_ads_Api
widget_theysaidso_widget
widget_recent-comments
LA_ads_Off
theysaidso_admin_options
LA_ads_Use
LA_ads_Pub
LA_arr_Use
...

Browser metrics Passed 4 tests

A check of browser resources used by LoadAds Publisher Code Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.26 ▼1.124.86 ▲3.2638.30 ▼6.06
Dashboard /wp-admin2,226 ▲374.84 ▼0.07110.34 ▼8.1843.72 ▼1.91
Posts /wp-admin/edit.php2,106 ▲172.02 ▲0.0435.35 ▼0.1333.26 ▲0.80
Add New Post /wp-admin/post-new.php1,551 ▲923.41 ▲5.05690.78 ▲31.0259.46 ▲6.85
Media Library /wp-admin/upload.php1,411 ▲264.20 ▲0.02103.16 ▲0.7046.73 ▲1.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function loadads_xOK() in wp-content/plugins/loadads-monetization-tool/template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/loadads-monetization-tool/main.php:23

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

loadads-monetization-tool/main.php 85% from 13 tests

This is the main PHP file of "LoadAds Publisher Code Integration" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("loadads-monetization-tool.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected517 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP411434517

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png28.48KB5.93KB▼ 79.19%