78% atomic-reach-audience-engager

Code Review | Atomic Reach

WordPress plugin Atomic Reach scored 78% from 54 tests.

About plugin

  • Plugin page: atomic-reach-audi...
  • Plugin version: 6.1.9
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Jan 29, 2014
  • Latest release: May 27, 2021
  • Number of updates: 272
  • Update frequency: every 9.8 days
  • Top authors: atomicreach (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 17,831 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.45MB] [CPU: ▼14.98ms] Passed 4 tests

Server-side resources used by Atomic Reach
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2340.35 ▼0.28
Dashboard /wp-admin3.53 ▲0.2348.57 ▼6.28
Posts /wp-admin/edit.php3.64 ▲0.2952.83 ▲6.91
Add New Post /wp-admin/post-new.php3.41 ▼2.4837.37 ▼54.52
Media Library /wp-admin/upload.php3.45 ▲0.2239.60 ▲1.16

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
aranalyzer_RSS
aranalyzer_view
widget_recent-comments
arActivatedDate
widget_recent-posts
aranalyzer_isHighlightingEnabled

Browser metrics Passed 4 tests

Checking browser requirements for Atomic Reach
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲12314.93 ▲0.341.78 ▲0.1742.75 ▲1.06
Dashboard /wp-admin2,234 ▲465.79 ▼0.07108.38 ▲9.8984.96 ▲40.38
Posts /wp-admin/edit.php2,138 ▲462.84 ▲0.7947.17 ▲9.7334.60 ▼2.56
Add New Post /wp-admin/post-new.php1,436 ▼8317.81 ▼5.49631.11 ▼55.2529.79 ▼35.56
Media Library /wp-admin/upload.php1,434 ▲464.64 ▲0.36100.18 ▼17.3880.47 ▲30.81

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/atomic-reach-audience-engager/custom/html/popups.php
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atomic-reach-audience-engager/ar_analyzer_admin.php:75
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atomic-reach-audience-engager/ar_options_page.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/atomic-reach-audience-engager/custom/html/go-to-create.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/atomic-reach-audience-engager/includes/ARClientWP.php on line 3
    • > PHP Warning
      include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/atomic-reach-audience-engager/includes/ARClientWP.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/atomic-reach-audience-engager/includes/ARClientWP.php on line 3
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/atomic-reach-audience-engager/includes/ARClientWP.php on line 3
    • > PHP Warning
      Declaration of AR_ClientWP::doRequest($service, $data = Array) should be compatible with AR_Client::doRequest($service, $data = Array, $method = 'POST') in wp-content/plugins/atomic-reach-audience-engager/includes/ARClientWP.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

atomic-reach-audience-engager/ar_analyzer.php 92% from 13 tests

"Atomic Reach" version 6.1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("atomic-reach-audience-engager.php" instead of "ar_analyzer.php")

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 detected33,972 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
JSON60016,135
JavaScript461,5369637,423
PHP171,1211,2313,740
CSS96632753,736
SVG3042,304
HTML97211609
Markdown111025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.28
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes29
▷ Abstract classes413.79%
▷ Concrete classes2586.21%
▷ Final classes00.00%
Methods220
▷ Static methods5223.64%
▷ Public methods18684.55%
▷ Protected methods41.82%
▷ Private methods3013.64%
Functions47
▷ Named functions4085.11%
▷ Anonymous functions714.89%
Constants23
▷ Global constants939.13%
▷ Class constants1460.87%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
custom/imgs/aw_standbybutton.png9.96KB5.17KB▼ 48.10%
custom/imgs/aw_audience_academic_simple.png3.30KB1.71KB▼ 48.14%
custom/imgs/AW_Audience_General_Simpe.png3.32KB1.71KB▼ 48.44%
custom/imgs/Icon_AW_check.png0.44KB0.27KB▼ 38.84%
custom/imgs/Logo_AtomicApp.png5.79KB3.63KB▼ 37.40%