84% meta-box-facetwp-integrator

Code Review | Meta Box - FacetWP Integrator

WordPress plugin Meta Box - FacetWP Integrator scored84%from 54 tests.

About plugin

  • Plugin page: meta-box-facetwp-...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 17, 2017
  • Latest release: Jun 17, 2023
  • Number of updates: 13
  • Update frequency: every 156.8 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /8,434 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.65ms] Passed 4 tests

A check of server-side resources used by Meta Box - FacetWP Integrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.22 ▼6.07
Dashboard /wp-admin3.34 ▲0.0349.70 ▲3.64
Posts /wp-admin/edit.php3.39 ▲0.0347.43 ▼7.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.47 ▼8.85
Media Library /wp-admin/upload.php3.26 ▲0.0337.70 ▲3.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Meta Box - FacetWP Integrator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.141.70 ▼0.0543.33 ▲1.63
Dashboard /wp-admin2,200 ▲125.88 ▲1.00101.15 ▼11.4241.48 ▼0.00
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0235.26 ▼8.0732.64 ▼1.35
Add New Post /wp-admin/post-new.php1,533 ▲523.37 ▲0.20687.92 ▲21.2257.10 ▲2.28
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.0799.09 ▲0.2444.01 ▲0.68

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'FacetWP_Facet' not found in wp-content/plugins/meta-box-facetwp-integrator/class-mb-relationships-facetwp.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/meta-box-facetwp-integrator/class-mb-facetwp-integrator.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

meta-box-facetwp-integrator/meta-box-facetwp-integrator.php Passed 13 tests

The principal PHP file in "Meta Box - FacetWP Integrator" v. 1.1.3 is loaded by WordPress automatically on each request
47 characters long description:
Integrates Meta Box custom fields with FacetWP.

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
No dangerous file extensions were detected206 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP336114206

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.50
▷ Minimum class complexity10.00
▷ Maximum class complexity29.00
Average method complexity5.11
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin