10% reach-analytics

Code Review | Reach Analytics

WordPress plugin Reach Analytics scored10%from 54 tests.

About plugin

  • Plugin page: reach-analytics
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.6
  • WordPress version: 6.3.1
  • First release: Aug 25, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: govind1246 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/reach-analytics/adreach_activation.php+54
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.52ms] Passed 4 tests

An overview of server-side resources used by Reach Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.32 ▲0.72
Dashboard /wp-admin3.32 ▲0.0144.35 ▼4.61
Posts /wp-admin/edit.php3.37 ▲0.0144.95 ▼0.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.48 ▼17.59
Media Library /wp-admin/upload.php3.24 ▲0.0135.24 ▲1.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Reach Analytics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.85 ▼0.778.15 ▲6.3644.27 ▲1.30
Dashboard /wp-admin2,195 ▲155.62 ▼0.0782.43 ▼4.2538.58 ▼5.84
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0534.26 ▲1.1631.30 ▼6.41
Add New Post /wp-admin/post-new.php1,531 ▲522.86 ▼0.14619.58 ▼7.0563.26 ▲8.17
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0495.94 ▼3.2543.99 ▲0.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

reach-analytics/adreach_activation.php 92% from 13 tests

Analyzing the main PHP file in "Reach Analytics" version 1.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("reach-analytics.php" instead of "adreach_activation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP271259

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected