80% personyze-web-analytics

Code Review | Personyze Wordpress Plugin

WordPress plugin Personyze Wordpress Plugin scored80%from 54 tests.

About plugin

  • Plugin page: personyze-web-ana...
  • Plugin version: 0.20
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.0.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2010
  • Latest release: Jul 23, 2022
  • Number of updates: 49
  • Update frequency: every 87.9 days
  • Top authors: Personyze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,525 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.73MB] [CPU: ▼45.60ms] Passed 4 tests

Server-side resources used by Personyze Wordpress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.2011.55 ▼27.77
Dashboard /wp-admin2.28 ▼1.0311.48 ▼34.80
Posts /wp-admin/edit.php2.28 ▼1.0811.46 ▼36.87
Add New Post /wp-admin/post-new.php2.28 ▼3.6110.04 ▼82.94
Media Library /wp-admin/upload.php2.28 ▼0.9510.78 ▼23.56
Personyze Configuration /wp-admin/options-general.php?page=personyze-config3.2131.13

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Personyze Wordpress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.27 ▼1.311.68 ▼0.1244.25 ▲3.24
Dashboard /wp-admin2,213 ▲245.79 ▲0.9099.76 ▼15.6439.65 ▼4.29
Posts /wp-admin/edit.php2,101 ▲122.05 ▲0.0739.79 ▲3.7235.16 ▼0.96
Add New Post /wp-admin/post-new.php1,526 ▼717.61 ▼5.51582.82 ▼106.5549.84 ▼7.17
Media Library /wp-admin/upload.php1,404 ▲194.23 ▲0.02104.57 ▲0.4943.00 ▼1.71
Personyze Configuration /wp-admin/options-general.php?page=personyze-config8272.0123.5426.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/personyze-web-analytics/personyze-web-analytics.php+385
    Undefined index: page
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

personyze-web-analytics/personyze-web-analytics.php Passed 13 tests

The primary PHP file in "Personyze Wordpress Plugin" version 0.20 is used by WordPress to initiate all plugin functionality
60 characters long description:
Integrates the site with Personyze personalization platform.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected390 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13735390

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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
Namespaces1
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%
Functions17
▷ Named functions15.88%
▷ Anonymous functions1694.12%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
assets/integration-widget.png16.75KB6.43KB▼ 61.60%