10% acurax-on-click-pop-under

Code Review | Acurax On Click Pop Under

WordPress plugin Acurax On Click Pop Under scored 10% 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: 5.9.2
  • 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

9 reviews

Install metrics

400+ active / 31,018 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > 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: ▼2.53MB] [CPU: ▼339.86ms] Passed 4 tests

Analyzing server-side resources used by Acurax On Click Pop Under
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.84 ▼1.673.95 ▼45.49
Dashboard /wp-admin1.86 ▼1.553.85 ▼29.48
Posts /wp-admin/edit.php1.86 ▼1.783.97 ▼33.19
Add New Post /wp-admin/post-new.php1.86 ▼5.114.04 ▼1,251.26
Media Library /wp-admin/upload.php1.86 ▼1.443.35 ▼20.77
Add-ons /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons1.864.18
Misc /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc1.864.68
PopUnder /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings1.863.80

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Acurax On Click Pop Under
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,803 ▲5916.14 ▲0.506.07 ▲0.452.18 ▼0.01
Dashboard /wp-admin2,931 ▲706.12 ▼0.13115.18 ▼19.64176.36 ▼0.35
Posts /wp-admin/edit.php2,728 ▲343.12 ▼0.1063.81 ▲0.65149.29 ▲6.59
Add New Post /wp-admin/post-new.php1,685 ▲2417.67 ▲0.92382.70 ▼27.88178.56 ▲23.19
Media Library /wp-admin/upload.php1,739 ▲415.49 ▼0.03120.47 ▼19.70209.50 ▲27.66
Add-ons /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Add-ons9902.3951.2887.98
Misc /wp-admin/admin.php?page=Acurax-Onclick-Popunder-Misc9912.3950.8585.33
PopUnder /wp-admin/admin.php?page=Acurax-onclick-popunder-Settings9862.3850.7695.33

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught 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

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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-Settings
    • > 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-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')
    • > 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')

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 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 plugin_dir_url() in wp-content/plugins/acurax-on-click-pop-under/acx_onclick_popunder.php:25
    • > 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

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 90% 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:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP file in "Acurax On Click Pop Under" ver. 3.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acurax-on-click-pop-under.php" instead of "acx_onclick_popunder.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 291 characters long)

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 plugin1,269 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43632677
CSS104350
SVG100242

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
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

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/admin.png3.28KB1.00KB▼ 69.42%
images/girl.png53.77KB16.52KB▼ 69.28%
images/quick.png1.93KB1.63KB▼ 15.33%
images/table_head_3.png5.97KB1.46KB▼ 75.53%
images/plug.png1.39KB1.29KB▼ 6.55%