78% greenrope-analytics

Code Review | GreenRope Analytics

WordPress plugin GreenRope Analytics scored 78% from 54 tests.

About plugin

  • Plugin page: greenrope-analytics
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 27, 2013
  • Latest release: Jan 31, 2023
  • Number of updates: 33
  • Update frequency: every 109.2 days
  • Top authors: opsgreenrope.com (51.52%)skozyk (33.33%)GreenRope (21.21%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,399 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.02ms] Passed 4 tests

Server-side resources used by GreenRope Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.47 ▼5.35
Dashboard /wp-admin3.34 ▲0.0443.48 ▼8.40
Posts /wp-admin/edit.php3.39 ▲0.0447.62 ▲1.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.37 ▼11.46
Media Library /wp-admin/upload.php3.26 ▲0.0334.80 ▲1.58

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
greenrope_settings
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by GreenRope Analytics
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8714.84 ▲0.551.79 ▼0.0844.28 ▼5.60
Dashboard /wp-admin2,228 ▲405.86 ▲0.9598.76 ▼9.5184.05 ▲36.18
Posts /wp-admin/edit.php2,116 ▲271.98 ▼0.0340.67 ▲4.2334.20 ▼0.82
Add New Post /wp-admin/post-new.php1,554 ▲2118.26 ▼4.84658.68 ▲10.0554.79 ▲4.39
Media Library /wp-admin/upload.php1,410 ▲224.13 ▼0.09101.91 ▼0.8381.12 ▲38.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/greenrope-analytics/greenrope.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greenrope-analytics/admin.inc.php:96

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: analytics, email marketing, wordpress crm, event registration system, greenrope...

greenrope-analytics/greenrope.php 92% from 13 tests

Analyzing the main PHP file in "GreenRope Analytics" version 1.5.6
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("greenrope-analytics.php" instead of "greenrope.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
Everything looks great! No dangerous files found in this plugin299 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36319182
CSS130117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 2.34MB with 1.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png1,749.01KB16.50KB▼ 99.06%
assets/icon-128x128.png64.32KB10.26KB▼ 84.05%
header.png11.91KB5.98KB▼ 49.84%
icon.png0.77KB0.74KB▼ 4.41%
assets/banner-772x250.png566.66KB78.94KB▼ 86.07%