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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.38 ▼4.41 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.73 ▼14.84 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.05 ▼10.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 88.30 ▼7.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.70 ▲4.01 |
Visual Editor /wp-admin/options-general.php?page=fx-editor | 3.23 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.22 | 1.85 ▲0.12 | 44.56 ▲0.80 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▼0.07 | 87.20 ▼10.99 | 41.36 ▼5.15 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.98 ▲0.02 | 34.40 ▼3.50 | 34.97 ▼3.07 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.12 ▼5.01 | 650.80 ▼49.25 | 67.33 ▲8.52 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.03 | 97.49 ▼8.80 | 44.88 ▼0.67 |
Visual Editor /wp-admin/options-general.php?page=fx-editor | 875 | 2.02 | 26.42 | 29.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 203 | 857 | 1,593 |
CSS | 6 | 18 | 87 | 680 |
PHP | 6 | 138 | 247 | 335 |
Markdown | 1 | 4 | 0 | 13 |
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 code | 0.46 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tool-code-icon.png | 0.42KB | 0.54KB | 0.00% |
assets/images/tool-icon-12-12.png | 0.15KB | 0.11KB | ▼ 29.41% |
assets/images/tool-icon-23-13.png | 0.15KB | 0.11KB | ▼ 30.32% |
assets/images/tool-php-icon.png | 0.20KB | 0.15KB | ▼ 26.57% |
assets/images/tool-pre-icon.png | 0.46KB | 0.57KB | 0.00% |