10% formidable-customizations

Code Review | Formidable Customizations

WordPress plugin Formidable Customizations scored10%from 54 tests.

About plugin

  • Plugin page: formidable-custom...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2013
  • Latest release: Nov 16, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: thomstark (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,716 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/formidable-customizations/formidable-customizations.php+39
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.35ms] Passed 4 tests

Server-side resources used by Formidable Customizations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.12 ▼2.20
Dashboard /wp-admin3.31 ▲0.0050.12 ▼1.67
Posts /wp-admin/edit.php3.36 ▲0.0044.35 ▼5.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.83 ▼8.12
Media Library /wp-admin/upload.php3.23 ▲0.0034.49 ▼0.56

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Formidable Customizations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.091.62 ▼0.0942.72 ▼1.08
Dashboard /wp-admin2,195 ▲185.53 ▼0.0681.09 ▼19.1437.94 ▼7.79
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0135.55 ▼2.4831.53 ▼3.61
Add New Post /wp-admin/post-new.php1,535 ▲718.28 ▼4.80590.06 ▼6.7563.65 ▲12.30
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0392.80 ▼8.1941.89 ▼1.35

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/formidable-customizations/admin/resources/options-help.php
    • > /wp-content/plugins/formidable-customizations/admin/resources/about.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Switch statements may only contain one default clause in wp-content/plugins/formidable-customizations/admin/class.ssfc-options.php on line 230
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formidable-customizations/formidable-customizations.php:16
    • > PHP Warning
      Use of undefined constant SSFC_IMAGES_URL - assumed 'SSFC_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/formidable-customizations/admin/resources/about.php on line 21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/formidable-customizations/admin/ssfc-admin.php:10
    • > PHP Warning
      Use of undefined constant SSFC_IMAGES_URL - assumed 'SSFC_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/formidable-customizations/admin/resources/about.php on line 16
    • > PHP Warning
      Use of undefined constant SSFC_IMAGES_URL - assumed 'SSFC_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/formidable-customizations/admin/resources/about.php on line 18
    • > PHP Warning
      Use of undefined constant SSFC_IMAGES_URL - assumed 'SSFC_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/formidable-customizations/admin/resources/about.php on line 19
    • > PHP Warning
      Use of undefined constant SSFC_IMAGES_URL - assumed 'SSFC_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/formidable-customizations/admin/resources/about.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/formidable-customizations/includes/ssfc-functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

formidable-customizations/formidable-customizations.php Passed 13 tests

The main file in "Formidable Customizations" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
72 characters long description:
A compendium of useful customizations and extensions for Formidable Pro.

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
Everything looks great! No dangerous files found in this plugin1,748 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP658241,130
CSS101290
SVG200263
JavaScript1101065

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity59.00
▷ Minimum class complexity59.00
▷ Maximum class complexity59.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.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
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/eyesonly_banner.png23.35KB7.93KB▼ 66.04%
images/fileaway_banner.png13.35KB4.49KB▼ 66.33%
images/fes_banner.png8.17KB4.58KB▼ 44.01%
images/bbc_banner.png20.49KB6.69KB▼ 67.37%
images/ssfc_banner.png15.31KB8.58KB▼ 43.97%