78% azurecurve-filtered-categories

Code Review | azurecurve Filtered Categories

WordPress plugin azurecurve Filtered Categories scored78%from 54 tests.

About plugin

  • Plugin page: azurecurve-filter...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.0.0
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Dec 6, 2018
  • Number of updates: 11
  • Update frequency: every 99.4 days
  • Top authors: azurecurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,395 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.91ms] Passed 4 tests

This is a short check of server-side resources used by azurecurve Filtered Categories
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0939.29 ▼8.03
Dashboard /wp-admin3.40 ▲0.0548.03 ▼18.61
Posts /wp-admin/edit.php3.51 ▲0.1551.58 ▲0.66
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.77 ▼13.03
Media Library /wp-admin/upload.php3.32 ▲0.0938.29 ▲0.05
Filtered Categories /wp-admin/admin.php?page=azc-fc3.2633.62
Plugins /wp-admin/admin.php?page=azc-plugin-menus3.2832.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_azc_fc
widget_theysaidso_widget
db_upgraded
azc_fc

Browser metrics Passed 4 tests

azurecurve Filtered Categories: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.34 ▲0.061.58 ▼0.1943.31 ▲0.32
Dashboard /wp-admin2,228 ▲575.58 ▼0.0595.02 ▼5.3780.03 ▲36.03
Posts /wp-admin/edit.php2,133 ▲332.00 ▼0.0640.10 ▲4.3034.10 ▲1.07
Add New Post /wp-admin/post-new.php1,552 ▲2623.92 ▲0.64728.06 ▲58.7350.63 ▼2.77
Media Library /wp-admin/upload.php1,427 ▲274.15 ▼0.11102.62 ▼12.6473.14 ▲23.94
Filtered Categories /wp-admin/admin.php?page=azc-fc9542.0023.3325.20
Plugins /wp-admin/admin.php?page=azc-plugin-menus8452.0026.1124.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_azc_fc
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=azc-fc
    • > Notice in wp-content/plugins/azurecurve-filtered-categories/azurecurve-filtered-categories.php+156
    Undefined index: include_exclude
    • > GET request to /wp-admin/admin.php?page=azc-fc
    • > Notice in wp-content/plugins/azurecurve-filtered-categories/azurecurve-filtered-categories.php+169
    Undefined index: category
    • > GET request to /wp-admin/admin.php?page=azc-fc
    • > Notice in wp-content/plugins/azurecurve-filtered-categories/azurecurve-filtered-categories.php+169
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=azc-fc
    • > Notice in wp-content/plugins/azurecurve-filtered-categories/azurecurve-filtered-categories.php+187
    Undefined index: category_page_show_count
    • > GET request to /wp-admin/admin.php?page=azc-fc
    • > Notice in wp-content/plugins/azurecurve-filtered-categories/azurecurve-filtered-categories.php+192
    Undefined index: category_page_feed_enabled

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-filtered-categories/includes/menu.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azurecurve-filtered-categories/includes/menu.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: category, shortcode, categories, classicpress, widget...

azurecurve-filtered-categories/azurecurve-filtered-categories.php 77% from 13 tests

The main file in "azurecurve Filtered Categories" v. 2.0.2 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:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Description: Please don't use more than 140 characters for the plugin description (currently 244 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin526 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP38970499
CSS20427

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/Favicon-16x16.png0.40KB0.34KB▼ 14.81%