68% pop-up-ads-bottom-right-corner

Code Review | Pop-up Ads Bottom Right Corner

WordPress plugin Pop-up Ads Bottom Right Corner scored68%from 54 tests.

About plugin

  • Plugin page: pop-up-ads-bottom...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jan 24, 2014
  • Latest release: Jan 24, 2014
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: anybuy.vn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /7,871 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.20ms] Passed 4 tests

A check of server-side resources used by Pop-up Ads Bottom Right Corner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.71 ▼3.88
Dashboard /wp-admin2.99 ▼0.3125.56 ▼25.50
Posts /wp-admin/edit.php3.00 ▼0.3624.39 ▼26.03
Add New Post /wp-admin/post-new.php2.99 ▼2.8927.10 ▼74.39
Media Library /wp-admin/upload.php2.99 ▼0.2325.82 ▼10.86
Pop-up Ads Bottom Right Corner /wp-admin/options-general.php?page=PopupAdsBottomRightCorner3.0022.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Pop-up Ads Bottom Right Corner: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.31 ▼1.073.65 ▲1.6846.41 ▼0.00
Dashboard /wp-admin2,207 ▲195.80 ▲0.83109.44 ▼23.9738.75 ▼24.05
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0140.26 ▼2.7436.19 ▲0.26
Add New Post /wp-admin/post-new.php1,536 ▲1723.00 ▼0.10640.29 ▲1.8649.99 ▲0.46
Media Library /wp-admin/upload.php1,395 ▲44.15 ▼0.0497.89 ▼4.9341.85 ▼5.92
Pop-up Ads Bottom Right Corner /wp-admin/options-general.php?page=PopupAdsBottomRightCorner6961.536.5721.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=PopupAdsBottomRightCorner
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=PopupAdsBottomRightCorner
    • > Notice in wp-content/plugins/pop-up-ads-bottom-right-corner/wppabrc_admin.php+7
    Undefined index: wppabrc_hidden

SRP 50% from 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pop-up-ads-bottom-right-corner/wppabrc_admin.php:18
    • > PHP Notice
      Undefined index: wppabrc_hidden in wp-content/plugins/pop-up-ads-bottom-right-corner/wppabrc_admin.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pop-up-ads-bottom-right-corner/wppabrc_main.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid plugin version format
Please take inspiration from this readme.txt

pop-up-ads-bottom-right-corner/wppabrc_main.php 92% from 13 tests

The main PHP file in "Pop-up Ads Bottom Right Corner" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pop-up-ads-bottom-right-corner.php" instead of "wppabrc_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2033123

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.07
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin