79% agp-ajax-taxonomy-filter

Code Review | AGP Ajax Taxonomy Filter

WordPress plugin AGP Ajax Taxonomy Filter scored79%from 54 tests.

About plugin

  • Plugin page: agp-ajax-taxonomy...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2015
  • Latest release: Sep 1, 2015
  • Number of updates: 18
  • Update frequency: every 9.4 days
  • Top authors: agolubnichenko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,389 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼12.19ms] Passed 4 tests

Server-side resources used by AGP Ajax Taxonomy Filter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.01 ▲1.87
Dashboard /wp-admin3.41 ▲0.0749.91 ▼16.48
Posts /wp-admin/edit.php3.51 ▲0.1549.18 ▼1.89
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.61 ▼31.09
Media Library /wp-admin/upload.php3.35 ▲0.1235.56 ▲0.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_atf_taxonomy_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by AGP Ajax Taxonomy Filter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲15413.41 ▼0.969.39 ▲7.8641.78 ▼0.56
Dashboard /wp-admin2,198 ▲185.62 ▼0.0388.25 ▼6.6641.09 ▲2.43
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0236.90 ▼4.4734.25 ▼2.63
Add New Post /wp-admin/post-new.php1,525 ▼1022.08 ▲3.93665.92 ▲17.3460.40 ▲4.50
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0599.15 ▼3.6342.68 ▼4.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_atf_taxonomy_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/fields/repeater/header.php
    • > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php
    • > /wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/render-tabs.php
  • 76× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 4
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/text.php on line 2
    • > PHP Notice
      Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php on line 19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Agp_SessionAbstract' not found in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/classes/persistence/session/Agp_Session.class.php:3
    • > PHP Notice
      Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 3
    • > PHP Notice
      Trying to get property 'fields' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/select.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/text.php:15
    • > PHP Notice
      Trying to get property 'field' of non-object in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/textarea.php on line 4
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/agp-ajax-taxonomy-filter/agp-core/templates/admin/options/fields/checkbox.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: ajax, taxonomy, agp, category, widget...

agp-ajax-taxonomy-filter/agp-ajax-taxonomy-filter.php Passed 13 tests

The main file in "AGP Ajax Taxonomy Filter" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
A plugin for WordPress that let you filter posts by taxonomies with AJAX

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
Good job! No executable or dangerous file extensions detected2,395 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP445234192,294
JavaScript316069
Markdown218031
CSS2021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.10
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes28
▷ Abstract classes932.14%
▷ Concrete classes1967.86%
▷ Final classes00.00%
Methods297
▷ Static methods51.68%
▷ Public methods29197.98%
▷ Protected methods20.67%
▷ Private methods41.35%
Functions4
▷ Named functions4100.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
4 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-128x128.png5.31KB1.65KB▼ 68.97%
assets/images/banner-772x250.png51.21KB23.59KB▼ 53.94%
assets/images/banner-1544x500.png128.82KB60.91KB▼ 52.71%
assets/images/icon-256x256.png9.66KB3.21KB▼ 66.77%