84% categorias-y-paginas-por-familia-y-profundidad

Code Review | Categorías y páginas por familia y profundidad

WordPress plugin Categorías y páginas por familia y profundidad scored 84% from 54 tests.

About plugin

  • Plugin page: categorias-y-pagi...
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2018
  • Latest release: Jul 8, 2020
  • Number of updates: 16
  • Update frequency: every 42.1 days
  • Top authors: crownley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,073 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.97ms] Passed 4 tests

An overview of server-side resources used by Categorías y páginas por familia y profundidad
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2243.77 ▲1.17
Dashboard /wp-admin3.52 ▲0.2246.77 ▼3.02
Posts /wp-admin/edit.php3.63 ▲0.2848.68 ▼4.66
Add New Post /wp-admin/post-new.php6.10 ▲0.2297.46 ▼4.13
Media Library /wp-admin/upload.php3.44 ▲0.2135.37 ▼8.08

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Categorías y páginas por familia y profundidad
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼1.121.71 ▼0.3243.51 ▼1.71
Dashboard /wp-admin2,209 ▲214.86 ▼0.0194.05 ▼23.6238.11 ▼10.11
Posts /wp-admin/edit.php2,086 ▼02.05 ▲0.0434.58 ▼1.1533.37 ▼1.70
Add New Post /wp-admin/post-new.php1,542 ▲918.28 ▼4.80623.01 ▲8.5148.22 ▼16.86
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.03100.03 ▼15.8042.25 ▼0.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_fwp_related_pages
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_fwp_related_cats

Smoke tests 75% 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 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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/categorias-y-paginas-por-familia-y-profundidad/family-widgets.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/categorias-y-paginas-por-familia-y-profundidad/related-cats.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/categorias-y-paginas-por-familia-y-profundidad/shortcodes/shortcode-pages.php:128
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/categorias-y-paginas-por-familia-y-profundidad/related-pages.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/categorias-y-paginas-por-familia-y-profundidad/shortcodes/shortcode-cats.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
10 plugin tags: categorias widget, related categories, paginas profundidad, mejor seo, paginas widget...

categorias-y-paginas-por-familia-y-profundidad/family-widgets.php 85% from 13 tests

This is the main PHP file of "Categorías y páginas por familia y profundidad" version 1.6.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("categorias-y-paginas-por-familia-y-profundidad.php" instead of "family-widgets.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,106 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6400110872
PO File25168160
Markdown169074

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.40
Average class complexity60.50
▷ Minimum class complexity60.00
▷ Maximum class complexity61.00
Average method complexity11.50
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected