84% adpushup

Code Review | AdPushup

WordPress plugin AdPushup scored84%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: 6.3.1
  • 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

10+ active /4,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by AdPushup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.98 ▲2.06
Dashboard /wp-admin3.35 ▲0.0046.71 ▼16.38
Posts /wp-admin/edit.php3.46 ▲0.1147.45 ▼3.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.06 ▼8.20
Media Library /wp-admin/upload.php3.27 ▲0.0439.76 ▲4.19
AdPushup Settings /wp-admin/options-general.php?page=adpushup_settings_page3.2433.21

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

AdPushup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲19914.74 ▲0.3910.48 ▲8.7043.64 ▲5.18
Dashboard /wp-admin2,220 ▲435.53 ▼0.0488.56 ▼4.1143.57 ▼2.51
Posts /wp-admin/edit.php2,126 ▲232.01 ▲0.0636.25 ▲0.1135.46 ▼2.83
Add New Post /wp-admin/post-new.php1,550 ▲2223.19 ▲0.26622.49 ▲2.4077.11 ▲13.13
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.08103.99 ▼2.5343.03 ▼0.47
AdPushup Settings /wp-admin/options-general.php?page=adpushup_settings_page8051.9925.6336.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Even though everything seems fine, this is not 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/adpushup/injector.php
    • > /wp-content/plugins/adpushup/settings.php
    • > /wp-content/plugins/adpushup/misc.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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #2, #4 in adpushup/assets to your readme.txt
Please take inspiration from this readme.txt

adpushup/adpushup.php Passed 13 tests

The entry point to "AdPushup" version 0.9.6 is a PHP file that has certain tags in its header comment area
33 characters long description:
Maximize your AdSense Ad Revenue!

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
No dangerous file extensions were detected206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP45841206

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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%