94% adpushup

Code Review | AdPushup

WordPress plugin AdPushup scored 94% from 54 tests.

About plugin

  • Plugin page: adpushup
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 5.9.2
  • First release: May 8, 2015
  • Latest release: Apr 18, 2016
  • Number of updates: 50
  • Update frequency: every 7.0 days
  • Top authors: AdPushup (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 4,363 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼296.28ms] Passed 4 tests

A check of server-side resources used by AdPushup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0863.63 ▲13.14
Dashboard /wp-admin3.42 ▲0.0234.85 ▼4.31
Posts /wp-admin/edit.php3.65 ▲0.0138.13 ▲0.07
Add New Post /wp-admin/post-new.php6.89 ▼0.0797.95 ▼1,179.58
Media Library /wp-admin/upload.php3.30 ▲0.0025.34 ▼1.28
AdPushup Settings /wp-admin/options-general.php?page=adpushup_settings_page3.2722.36

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AdPushup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,949 ▲19516.69 ▲0.9813.48 ▲7.632.81 ▲0.33
Dashboard /wp-admin2,924 ▲666.15 ▼0.12113.50 ▼15.22166.13 ▲6.17
Posts /wp-admin/edit.php2,723 ▲293.24 ▼0.0065.48 ▲2.27150.19 ▲9.55
Add New Post /wp-admin/post-new.php1,798 ▲13721.74 ▲5.06442.69 ▲2.35172.31 ▲20.09
Media Library /wp-admin/upload.php1,730 ▲295.62 ▲0.10139.35 ▲7.73194.36 ▲4.32
AdPushup Settings /wp-admin/options-general.php?page=adpushup_settings_page9982.3851.59100.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/adpushup/misc.php
    • > /wp-content/plugins/adpushup/settings.php
    • > /wp-content/plugins/adpushup/injector.php
    • > /wp-content/plugins/adpushup/adpushup.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #2, #4 in adpushup/assets to your readme.txt
The official readme.txt is a good inspiration

adpushup/adpushup.php Passed 13 tests

The main PHP file in "AdPushup" ver. 0.9.6 adds more information about the plugin and also serves as the entry point for this plugin
33 characters long description:
Maximize your AdSense Ad Revenue!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45841206

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
800x600 plugin banner.png74.90KB26.83KB▼ 64.18%