84% fx-editor

Code Review | f(x) Editor

WordPress plugin f(x) Editor scored84%from 54 tests.

About plugin

  • Plugin page: fx-editor
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Feb 3, 2016
  • Latest release: Dec 9, 2016
  • Number of updates: 19
  • Update frequency: every 16.3 days
  • Top authors: turtlepod (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /14,866 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
Install script ran successfully

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

A check of server-side resources used by f(x) Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.38 ▼4.41
Dashboard /wp-admin3.34 ▼0.0051.73 ▼14.84
Posts /wp-admin/edit.php3.40 ▲0.0446.05 ▼10.97
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.30 ▼7.87
Media Library /wp-admin/upload.php3.27 ▲0.0440.70 ▲4.01
Visual Editor /wp-admin/options-general.php?page=fx-editor3.2333.90

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

f(x) Editor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.221.85 ▲0.1244.56 ▲0.80
Dashboard /wp-admin2,202 ▲225.60 ▼0.0787.20 ▼10.9941.36 ▼5.15
Posts /wp-admin/edit.php2,101 ▲11.98 ▲0.0234.40 ▼3.5034.97 ▼3.07
Add New Post /wp-admin/post-new.php1,540 ▲1418.12 ▼5.01650.80 ▼49.2567.33 ▲8.52
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0397.49 ▼8.8044.88 ▼0.67
Visual Editor /wp-admin/options-general.php?page=fx-editor8752.0226.4229.04

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fx-editor/includes/filters.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/fx-editor/fx-editor.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: buttons, editor, columns, visual editor, boxes...

fx-editor/fx-editor.php Passed 13 tests

"f(x) Editor" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
Power-up Your WordPress Visual Editor with Boxes, Buttons, Columns, and more... (No Shortcodes).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,621 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82038571,593
CSS61887680
PHP6138247335
Markdown14013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity30.50
▷ Minimum class complexity21.00
▷ Maximum class complexity40.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
13 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tool-code-icon.png0.42KB0.54KB0.00%
assets/images/tool-icon-12-12.png0.15KB0.11KB▼ 29.41%
assets/images/tool-icon-23-13.png0.15KB0.11KB▼ 30.32%
assets/images/tool-php-icon.png0.20KB0.15KB▼ 26.57%
assets/images/tool-pre-icon.png0.46KB0.57KB0.00%