57% facetwp-manipulator

Code Review | FacetWP Manipulator

WordPress plugin FacetWP Manipulator scored 57% from 54 tests.

About plugin

  • Plugin page: facetwp-manipulator
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2017
  • Latest release: Jan 18, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: Desertsnowman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 4,986 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.72MB] [CPU: ▼46.02ms] Passed 4 tests

Analyzing server-side resources used by FacetWP Manipulator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.227.31 ▼30.88
Dashboard /wp-admin2.30 ▼1.019.73 ▼37.60
Posts /wp-admin/edit.php2.30 ▼1.0510.38 ▼34.56
Add New Post /wp-admin/post-new.php2.30 ▼3.5910.08 ▼81.02
Media Library /wp-admin/upload.php2.30 ▼0.9310.55 ▼23.09
FWP Manipulator /wp-admin/options-general.php?page=facetwp-manipulator2.308.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for FacetWP Manipulator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.28 ▼1.091.64 ▼0.1444.36 ▲2.20
Dashboard /wp-admin2,207 ▲195.85 ▲0.98107.19 ▲5.0138.10 ▼4.52
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0335.82 ▼1.0233.98 ▲1.55
Add New Post /wp-admin/post-new.php1,537 ▲423.28 ▲0.10664.87 ▼8.6051.30 ▼2.57
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.08102.63 ▲0.3747.22 ▲2.02
FWP Manipulator /wp-admin/options-general.php?page=facetwp-manipulator1,0752.5740.9841.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui.php+117
    Creating default object from empty value
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=facetwp-manipulator
    • > Warning in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui.php+117
    Creating default object from empty value

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/facetwp-manipulator/includes/hook-samples.php
    • > /wp-content/plugins/facetwp-manipulator/assets/svg/loading.php
  • 28× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\panel' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/section.php:19
    • > PHP Notice
      Undefined index: base_color in wp-content/plugins/facetwp-manipulator/assets/svg/loading.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\control' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/control/handlebars.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\data\\data' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/panel.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\panel' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/box.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\control\\radio' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/control/checkbox.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\control\\textarea' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/control/codemirror.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\control' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/control/separator.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/facetwp-manipulator/includes/admin-template.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'fwpmanip\\ui\\control' not found in wp-content/plugins/facetwp-manipulator/classes/fwpmanip/ui/control/template.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=facetwp-manipulator
    • > Network (severe)
    wp-content/plugins/facetwp-manipulator/assets/css/core.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not 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
4 plugin tags: facetwp hooks, facetwp filters, facetwp, facetwp actions

facetwp-manipulator/facetwp-manipulator.php Passed 13 tests

The main file in "FacetWP Manipulator" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Manipulate FacetWP easily by applying custom code to FacetWP Hooks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,940 lines of code in 110 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript392,1771,69813,586
CSS30138354,532
PHP376672,2632,151
HTML313501,056
SVG100615

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.62
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces5
Interfaces2
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes00.00%
Methods176
▷ Static methods52.84%
▷ Public methods15185.80%
▷ Protected methods147.95%
▷ Private methods116.25%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/fwp-manipulator.png47.95KB27.88KB▼ 41.86%