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.00MB] [CPU: ▼5.00ms] Passed 4 tests
Analyzing server-side resources used by f(x) Categories Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.98 ▲1.13 |
Dashboard /wp-admin | 3.32 ▼0.03 | 46.80 ▼18.45 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.89 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 104.76 ▼3.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.72 ▲4.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_widget_fx_categories |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for f(x) Categories Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.35 ▼0.32 | 1.71 ▼0.19 | 44.17 ▼2.83 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.00 | 82.12 ▼9.77 | 36.55 ▼5.71 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.01 | 37.12 ▼0.29 | 35.58 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.55 ▲0.49 | 666.63 ▼14.23 | 55.56 ▼1.20 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.04 | 95.65 ▼15.35 | 43.54 ▼3.36 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_widget_fx_categories
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fx-categories-widget/includes/widgets.php:8
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/fx-categories-widget/includes/functions.php:148
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: tag, custom taxonomy, categories, post tag, widget...
fx-categories-widget/fx-categories-widget.php Passed 13 tests
"f(x) Categories Widget" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Categories widget with taxonomy option.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin287 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 72 | 159 | 238 |
PO File | 1 | 9 | 9 | 36 |
Markdown | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin