10% acurax-on-click-pop-under

Code Review | Acurax On Click Pop Under

WordPress plugin Acurax On Click Pop Under scored10%from 54 tests.

About plugin

  • Plugin page: acurax-on-click-p...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.4.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2012
  • Latest release: May 19, 2020
  • Number of updates: 35
  • Update frequency: every 85.6 days
  • Top authors: Acurax (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /31,630 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+29
    include_once(wp-content/plugins/acurax-on-click-pop-under/function.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.10ms] Passed 4 tests

A check of server-side resources used by Acurax On Click Pop Under
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.414.81 ▼35.31
Dashboard /wp-admin2.08 ▼1.235.37 ▼45.16
Posts /wp-admin/edit.php2.08 ▼1.285.82 ▼40.36
Add New Post /wp-admin/post-new.php2.08 ▼3.815.84 ▼99.56
Media Library /wp-admin/upload.php2.08 ▼1.155.66 ▼30.20
Add-ons /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons2.085.28
PopUnder /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings2.086.77
Misc /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc2.085.58

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

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

Browser metrics Passed 4 tests

Acurax On Click Pop Under: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.25 ▼0.022.10 ▲0.4846.49 ▲1.55
Dashboard /wp-admin2,210 ▲305.58 ▼0.0791.87 ▼0.3781.61 ▲35.58
Posts /wp-admin/edit.php2,127 ▲241.98 ▼0.0633.92 ▼4.4934.70 ▼1.14
Add New Post /wp-admin/post-new.php1,566 ▲4022.94 ▼0.26702.47 ▲27.9650.73 ▼0.56
Media Library /wp-admin/upload.php1,424 ▲244.28 ▲0.0897.33 ▼0.7279.11 ▲36.12
Add-ons /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons7832.0024.1323.33
PopUnder /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings8011.9926.5322.57
Misc /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc8011.9923.3023.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+29
    include_once(wp-content/plugins/acurax-on-click-pop-under/function.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+29
    include_once(wp-content/plugins/acurax-on-click-pop-under/function.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+29
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/function.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+30
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/hooks.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+30
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/hooks.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+31
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/hook_functions.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+31
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/hook_functions.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+32
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/option_fields.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+32
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/option_fields.php' for inclusion (include_path='.:/usr/share/php')
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+33
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/acx-onclick_popunder-licence-activation.php): failed to open stream: No such file or directory
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+33
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/acx-onclick_popunder-licence-activation.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+43
    include(wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_addons.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+43
    include(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_addons.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+35
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_admin.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+35
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_admin.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+39
    include_once(wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_misc.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc
    • > Warning in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php+39
    include_once(): Failed opening 'wp-content/plugins/acurax-on-click-pop-under/includes/acx_onclick_popunder_misc.php' for inclusion (include_path='.:/usr/share/php')

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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder_admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder_misc.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acurax-on-click-pop-under/functions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php:25

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

acurax-on-click-pop-under/acx_onclick_popunder.php 85% from 13 tests

The main PHP script in "Acurax On Click Pop Under" version 3.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 291 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acurax-on-click-pop-under.php" instead of "acx_onclick_popunder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,269 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43632677
CSS104350
SVG100242

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
11 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/admin.png3.28KB1.00KB▼ 69.42%
images/ss_yes.png0.45KB0.41KB▼ 7.84%
images/quick.png1.93KB1.63KB▼ 15.33%
images/table_head_4.png14.24KB7.04KB▼ 50.55%
images/des.png2.42KB1.88KB▼ 22.13%