90% exploded-view-filter

Code Review | Exploded View Filter

WordPress plugin Exploded View Filter scored90%from 54 tests.

About plugin

  • Plugin page: exploded-view-filter
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2019
  • Latest release: Jul 28, 2022
  • Number of updates: 3
  • Update frequency: every 318.7 days
  • Top authors: pektsekye (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /627 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests

An overview of server-side resources used by Exploded View Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.88 ▲0.95
Dashboard /wp-admin3.33 ▼0.0247.74 ▼12.81
Posts /wp-admin/edit.php3.38 ▲0.0245.87 ▼2.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.14 ▼8.74
Media Library /wp-admin/upload.php3.26 ▲0.0235.56 ▲3.06

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Exploded View Filter: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.031.80 ▲0.2442.00 ▲3.27
Dashboard /wp-admin2,198 ▲175.63 ▼0.0798.33 ▼5.8041.76 ▼2.85
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0034.47 ▼3.0334.46 ▲0.53
Add New Post /wp-admin/post-new.php1,526 ▼023.36 ▲0.17631.26 ▼56.7559.10 ▼4.37
Media Library /wp-admin/upload.php1,403 ▲34.17 ▲0.0393.36 ▼5.2540.97 ▼3.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: exploded view, diagram, product filter

exploded-view-filter/exploded-view-filter.php Passed 13 tests

The main PHP script in "Exploded View Filter" version 1.0.0 is automatically included on every request by WordPress
55 characters long description:
Displays a diagram image with links to filter products.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,274 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP15371211,061
JavaScript1720197
CSS24016

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.30
Average class complexity10.55
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods91
▷ Static methods55.49%
▷ Public methods8694.51%
▷ Protected methods00.00%
▷ Private methods55.49%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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 are no PNG files in this plugin