84% quick-adsense-mobile

Code Review | Quick Adsense Mobile

WordPress plugin Quick Adsense Mobile scored 84% from 54 tests.

About plugin

  • Plugin page: quick-adsense-mobile
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.5
  • WordPress version: 6.3.1
  • First release: May 23, 2017
  • Latest release: May 23, 2017
  • Number of updates: 19
  • Update frequency: every 0.2 days
  • Top authors: Miguelo2008 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 17,514 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Quick Adsense Mobile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1248.81 ▲10.38
Dashboard /wp-admin3.47 ▲0.1655.10 ▲8.81
Posts /wp-admin/edit.php3.52 ▲0.1650.73 ▲4.66
Add New Post /wp-admin/post-new.php6.05 ▲0.1692.53 ▼4.78
Media Library /wp-admin/upload.php3.39 ▲0.1641.26 ▲4.57

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 46 new options
New WordPress options
Par1Nup
AdsAlign10
AdsMargin8
AdsAlign9
BegnAds
Img1Rnd
AdsMargin5
db_upgraded
LapaRnd
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for Quick Adsense Mobile
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.79 ▲0.622.48 ▲0.5942.72 ▲2.32
Dashboard /wp-admin2,216 ▲284.85 ▼0.0397.26 ▼8.7742.85 ▼4.07
Posts /wp-admin/edit.php2,093 ▲12.02 ▼0.0035.56 ▼3.4831.97 ▲1.29
Add New Post /wp-admin/post-new.php1,539 ▼323.35 ▲5.00672.50 ▲28.0559.10 ▲7.91
Media Library /wp-admin/upload.php1,398 ▲74.22 ▲0.0297.56 ▼10.1244.36 ▼1.94
Quick Adsense mobile /wp-admin/quick-adsense-mobile.php260.440.1613.32

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 46 options
    • Img1Rnd
    • Par2Nup
    • LapaRnd
    • QckTags
    • widget_recent-comments
    • EndiRnd
    • Par1Nup
    • AdsDisp
    • MoreRnd
    • AdsAlign7
    • ...

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
Everything seems fine, however 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/quick-adsense-mobile.php
    • > Network (severe)
    wp-admin/quick-adsense-mobile.php - Failed to load resource: the server responded with a status of 404 (Not 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
Please take inspiration from this readme.txt

quick-adsense-mobile/quick-adsense-mobile.php Passed 13 tests

"Quick Adsense Mobile" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
Quick Adsense Mobile offers a quicker & flexible way to insert Google Adsense or any Ads code into a blog post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin800 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25845800

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 PNG files occupy 0.36MB with 0.27MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png114.84KB26.08KB▼ 77.29%
screenshot-2.png251.56KB67.23KB▼ 73.28%