89% privateanalytix

Code Review | PrivateAnalytix

WordPress plugin PrivateAnalytix scored89%from 54 tests.

About plugin

  • Plugin page: privateanalytix
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 7, 2021
  • Latest release: Jan 8, 2021
  • Number of updates: 2
  • Update frequency: every 8.5 days
  • Top authors: privateanalytix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /432 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by PrivateAnalytix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.82 ▼4.11
Dashboard /wp-admin3.33 ▼0.0250.28 ▼18.42
Posts /wp-admin/edit.php3.38 ▲0.0251.92 ▼0.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.73 ▼15.89
Media Library /wp-admin/upload.php3.25 ▲0.0236.72 ▲0.13

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by PrivateAnalytix
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.011.71 ▲0.0443.82 ▼0.64
Dashboard /wp-admin2,211 ▲375.62 ▼0.0185.08 ▼12.2439.01 ▲0.08
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0434.58 ▼0.2132.87 ▼2.90
Add New Post /wp-admin/post-new.php1,544 ▲1823.23 ▲0.34614.34 ▼53.8445.64 ▼5.69
Media Library /wp-admin/upload.php1,413 ▲134.18 ▼0.0199.72 ▲0.3642.98 ▲0.36

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

privateanalytix/privateanalytix.php Passed 13 tests

The main PHP script in "PrivateAnalytix" version 1.2.0 is automatically included on every request by WordPress
52 characters long description:
Embeds PrivateAnalytix code snippet in your website.

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
Good job! No executable or dangerous file extensions detected101 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2161194
CSS1007

PHP code Passed 2 tests

A short 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.33
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods654.55%
▷ Protected methods00.00%
▷ Private methods545.45%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png19.07KB10.20KB▼ 46.54%