84% scifi-facets

Code Review | scifi Facets

WordPress plugin scifi Facets scored 84% from 54 tests.

About plugin

  • Plugin page: scifi-facets
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: May 5, 2014
  • Latest release: Aug 20, 2015
  • Number of updates: 26
  • Update frequency: every 18.3 days
  • Top authors: dimitrov.adrian (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active / 2,631 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼3.45ms] Passed 4 tests

Analyzing server-side resources used by scifi Facets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2443.67 ▲0.63
Dashboard /wp-admin3.51 ▲0.2146.29 ▼4.70
Posts /wp-admin/edit.php3.63 ▲0.2750.17 ▲3.91
Add New Post /wp-admin/post-new.php6.09 ▲0.2185.89 ▼12.18
Media Library /wp-admin/upload.php3.44 ▲0.2137.91 ▲2.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_scifi-facets-ordering-widget
widget_recent-posts
widget_scifi-facets-taxonomy-widget
db_upgraded
widget_scifi-facets-time-widget

Browser metrics Passed 4 tests

A check of browser resources used by scifi Facets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.18 ▼1.411.78 ▼0.1544.40 ▼0.77
Dashboard /wp-admin2,206 ▲184.85 ▼0.07108.25 ▲4.1940.04 ▼4.25
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0439.16 ▲5.6235.55 ▲0.74
Add New Post /wp-admin/post-new.php1,514 ▼1417.68 ▼0.45679.83 ▲34.0059.26 ▲3.98
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0393.92 ▼2.9644.51 ▼0.76

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: 9 options
    • widget_recent-comments
    • widget_scifi-facets-ordering-widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_scifi-facets-taxonomy-widget
    • widget_scifi-facets-time-widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/scifi-facets/widget-taxonomy.php:179
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/scifi-facets/widget-time.php:116
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/scifi-facets/widget-ordering.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scifi-facets/scifi-facets.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
6 plugin tags: faceted, date archive, taxonomy, facet, search...

scifi-facets/scifi-facets.php Passed 13 tests

Analyzing the main PHP file in "scifi Facets" version 0.6.2
59 characters long description:
Add widget for faceted search or category/taxonomy browsing

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,289 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4170236997
CSS1915131
PO File14344115
JavaScript16846

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.58
Average class complexity24.67
▷ Minimum class complexity14.00
▷ Maximum class complexity43.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.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
PNG images were not found in this plugin