84% widget-catalog-and-filter-by-atlas

Code Review | Widget Catalog and Filter by Atlas

WordPress plugin Widget Catalog and Filter by Atlas scored 84% from 54 tests.

About plugin

  • Plugin page: widget-catalog-an...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 22, 2021
  • Latest release: Apr 22, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: atlas89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 242 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.01MB] [CPU: ▼6.51ms] Passed 4 tests

A check of server-side resources used by Widget Catalog and Filter by Atlas
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.76 ▼3.64
Dashboard /wp-admin3.32 ▲0.0146.97 ▼5.32
Posts /wp-admin/edit.php3.37 ▲0.0147.02 ▲6.57
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.61 ▼15.08
Media Library /wp-admin/upload.php3.24 ▲0.0132.39 ▼2.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_wp_atl_catalog
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Widget Catalog and Filter by Atlas
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.391.76 ▲0.0043.17 ▼7.54
Dashboard /wp-admin2,206 ▲185.91 ▲1.02112.01 ▲1.7643.56 ▼3.02
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0634.09 ▼7.0733.53 ▼0.50
Add New Post /wp-admin/post-new.php1,415 ▼12718.09 ▼0.06593.10 ▼64.4746.27 ▼9.57
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0193.92 ▼8.5040.23 ▼6.59

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • widget_wp_atl_catalog
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/widget-catalog-and-filter-by-atlas/atl-wp-plugin-widget-catalog.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: widget catalog and filter

widget-catalog-and-filter-by-atlas/atl-wp-plugin-widget-catalog.php 85% from 13 tests

Analyzing the main PHP file in "Widget Catalog and Filter by Atlas" version 1.1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widget-catalog-and-filter-by-atlas.php" instead of "atl-wp-plugin-widget-catalog.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12140149
PO File17731

PHP code Passed 2 tests

This is a very shot review 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.23
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin