84% analytics-breakingpoint

Code Review | Analytics WebThunder

WordPress plugin Analytics WebThunder scored84%from 54 tests.

About plugin

  • Plugin page: analytics-breakin...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: Mar 19, 2019
  • Latest release: Mar 19, 2019
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: breakingpointromania (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Analytics WebThunder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.11 ▼5.41
Dashboard /wp-admin3.33 ▼0.0250.85 ▼13.89
Posts /wp-admin/edit.php3.38 ▲0.0247.04 ▼6.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.92 ▼11.11
Media Library /wp-admin/upload.php3.25 ▲0.0240.02 ▲3.74
Analytics WebThunder /wp-admin/options-general.php?page=analytics-webthunder3.2232.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Analytics WebThunder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.381.75 ▼0.5941.74 ▲1.09
Dashboard /wp-admin2,196 ▲245.62 ▼0.0889.49 ▼13.1340.85 ▼3.98
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0334.73 ▼1.5736.96 ▼2.44
Add New Post /wp-admin/post-new.php1,529 ▲323.81 ▲0.70623.86 ▼56.3151.58 ▼2.62
Media Library /wp-admin/upload.php1,401 ▲104.23 ▼0.0399.29 ▼0.9942.78 ▲1.39
Analytics WebThunder /wp-admin/options-general.php?page=analytics-webthunder7882.0024.9928.99

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/analytics-breakingpoint/analytics-webthunder.php

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (https://imgur.com/gInYGlS) image missing
You can look at the official readme.txt

analytics-breakingpoint/analytics-webthunder.php 92% from 13 tests

The main file in "Analytics WebThunder" v. 0.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("analytics-breakingpoint.php" instead of "analytics-webthunder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1244699

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin