83% ga-admin-taxonomy-search

Code Review | GA Admin Taxonomy Search

WordPress plugin GA Admin Taxonomy Search scored83%from 54 tests.

About plugin

  • Plugin page: ga-admin-taxonomy...
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2020
  • Latest release: Sep 26, 2023
  • Number of updates: 9
  • Update frequency: every 138.6 days
  • Top authors: goqflash (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /787 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by GA Admin Taxonomy Search
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.51 ▼0.09
Dashboard /wp-admin3.32 ▲0.0249.01 ▼1.39
Posts /wp-admin/edit.php3.37 ▲0.0248.49 ▲5.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.18 ▼7.89
Media Library /wp-admin/upload.php3.24 ▲0.0235.91 ▲2.18

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for GA Admin Taxonomy Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.26 ▼1.046.10 ▲4.2342.06 ▲2.32
Dashboard /wp-admin2,206 ▲184.83 ▼0.04102.33 ▼11.1339.46 ▼4.75
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0536.64 ▲2.2234.24 ▲1.00
Add New Post /wp-admin/post-new.php1,535 ▲2123.44 ▲5.97693.20 ▲5.4147.42 ▼8.70
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0694.74 ▼13.0341.03 ▼3.34

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ga-admin-taxonomy-search/ga-admin-taxonomy-search.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% 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: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt might help

ga-admin-taxonomy-search/ga-admin-taxonomy-search.php 77% from 13 tests

The principal PHP file in "GA Admin Taxonomy Search" v. 0.0.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.5.0" instead of "3.6")
  • Requires PHP: The required version number must match the one declared in readme.txt ("5.6" instead of "5.2")
  • Description: Please don't use more than 140 characters for the plugin description (currently 189 characters long)

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
Success! There were no dangerous files found in this plugin223 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript119294
PHP4383473
Markdown119032
CSS12024

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG files were detected