89% fullestop-analytics-code-option

Code Review | Analytics Code Option

WordPress plugin Analytics Code Option scored 89% from 54 tests.

About plugin

  • Plugin page: fullestop-analyti...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: May 11, 2019
  • Number of updates: 5
  • Update frequency: every 184.0 days
  • Top authors: Fullestop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,287 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.72ms] Passed 4 tests

This is a short check of server-side resources used by Analytics Code Option
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.19 ▼0.32
Dashboard /wp-admin3.33 ▲0.0247.56 ▼0.83
Posts /wp-admin/edit.php3.38 ▲0.0245.64 ▲2.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.94 ▼15.99
Media Library /wp-admin/upload.php3.25 ▲0.0234.06 ▲2.29

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Analytics Code Option
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.25 ▼1.101.69 ▲0.1140.30 ▲2.51
Dashboard /wp-admin2,225 ▲335.86 ▼0.0793.72 ▼27.0738.20 ▼6.16
Posts /wp-admin/edit.php2,102 ▲162.02 ▼0.0537.10 ▲1.5531.03 ▲2.35
Add New Post /wp-admin/post-new.php1,547 ▲2823.33 ▼0.32686.58 ▲30.1853.08 ▲1.27
Media Library /wp-admin/upload.php1,398 ▲104.27 ▲0.0196.11 ▼3.6242.20 ▲2.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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)
Good news, no errors were detected

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
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 just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

fullestop-analytics-code-option/fullestop-trackingcode-option.php 92% from 13 tests

This is the main PHP file of "Analytics Code Option" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fullestop-analytics-code-option.php" instead of "fullestop-trackingcode-option.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected105 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14131105

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.59
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin