84% seo-friendly-ga

Code Review | SEO Friendly GA

WordPress plugin SEO Friendly GA scored84%from 54 tests.

About plugin

  • Plugin page: seo-friendly-ga
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2019
  • Latest release: Dec 9, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: subet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /458 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.09MB] [CPU: ▼2.24ms] Passed 4 tests

Analyzing server-side resources used by SEO Friendly GA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.92 ▼2.85
Dashboard /wp-admin3.40 ▲0.1047.36 ▲0.18
Posts /wp-admin/edit.php3.51 ▲0.1648.66 ▼0.96
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.60 ▼5.31
Media Library /wp-admin/upload.php3.32 ▲0.0936.35 ▲2.01
SEO Friendly GA /wp-admin/options-general.php?page=seo-friendly-ga3.3529.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SEO Friendly GA
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.311.80 ▲0.3145.25 ▼0.26
Dashboard /wp-admin2,193 ▲125.60 ▼0.1086.25 ▼13.7641.44 ▲1.76
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.1339.75 ▼0.9735.96 ▲4.14
Add New Post /wp-admin/post-new.php1,531 ▲323.32 ▲0.20620.30 ▼54.7252.79 ▲3.62
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.00101.92 ▼3.4542.54 ▼3.82
SEO Friendly GA /wp-admin/options-general.php?page=seo-friendly-ga1,1731.8330.4735.98

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=seo-friendly-ga
    • > Network (severe)
    wp-content/plugins/seo-friendly-ga/img/ga-icon-160x160.png - Failed to load resource: the server responded with a status of 404 (Not Found)

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
These attributes need your attention:
  • Requires php: Invalid version format
You can look at the official readme.txt

seo-friendly-ga/seo-friendly-ga.php 92% from 13 tests

The primary PHP file in "SEO Friendly GA" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 337 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected669 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP429121549
JavaScript29183
CSS18137

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin