84% popad

Code Review | PopAd

WordPress plugin PopAd scored84%from 54 tests.

About plugin

  • Plugin page: popad
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Aug 7, 2016
  • Latest release: Oct 1, 2016
  • Number of updates: 20
  • Update frequency: every 21.9 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,114 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
Install script ran successfully

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

Server-side resources used by PopAd
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.53 ▲3.03
Dashboard /wp-admin3.34 ▲0.0448.06 ▲1.98
Posts /wp-admin/edit.php3.40 ▲0.0447.72 ▼1.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.52 ▼7.69
Media Library /wp-admin/upload.php3.27 ▲0.0436.14 ▲0.62
General PopAd /wp-admin/edit.php?post_type=pop_ad&page=pop-ad-general3.2430.31
Add New /wp-admin/post-new.php?post_type=pop_ad3.3139.99
All PopAd /wp-admin/edit.php?post_type=pop_ad3.3137.03

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by PopAd
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲21413.95 ▼0.8010.33 ▲8.4742.52 ▲0.88
Dashboard /wp-admin2,241 ▲504.82 ▼0.05101.72 ▲1.3942.19 ▲0.64
Posts /wp-admin/edit.php2,130 ▲412.07 ▲0.0236.46 ▼2.8832.66 ▼4.07
Add New Post /wp-admin/post-new.php6,257 ▲4,72319.40 ▼3.81907.47 ▲226.5076.54 ▲4.82
Media Library /wp-admin/upload.php1,429 ▲444.19 ▼0.0594.04 ▼17.6940.57 ▼8.87
General PopAd /wp-admin/edit.php?post_type=pop_ad&page=pop-ad-general8562.0530.4330.41
Add New /wp-admin/post-new.php?post_type=pop_ad1,5032.7657.1259.39
All PopAd /wp-admin/edit.php?post_type=pop_ad1,1171.9933.9730.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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 19× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/popad/admin/css/font/index.php
    • > /wp-content/plugins/popad/images/index.php
    • > /wp-content/plugins/popad/admin/settings.php
    • > /wp-content/plugins/popad/admin/banner/index.php
    • > /wp-content/plugins/popad/index.php
    • > /wp-content/plugins/popad/admin/index.php
    • > /wp-content/plugins/popad/admin/post-type-filters.php
    • > /wp-content/plugins/popad/admin/js/index.php
    • > /wp-content/plugins/popad/admin/visual-media.php
    • > /wp-content/plugins/popad/admin/css/css/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

popad/popad.php Passed 13 tests

The entry point to "PopAd" version 1.0.4 is a PHP file that has certain tags in its header comment area
80 characters long description:
The Ultimate PopUp Ads Plugin! With a Lot of Features.. Discover it by yourself.

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
Good job! No executable or dangerous file extensions detected1,713 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP10324331,361
CSS83530269
JavaScript2241071
SVG10012

PHP code Passed 2 tests

A short 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.45
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%
Functions37
▷ Named functions37100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.92KB0.86KB▼ 6.08%