Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼137.88ms] Passed 4 tests
Server-side resources used by FMenu - FOSS of Five
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 35.84 ▲14.72 |
Dashboard /wp-admin | 3.11 ▲0.05 | 51.30 ▲13.25 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 39.95 ▼6.32 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 91.38 ▼565.46 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 40.35 ▲7.01 |
FMenu Settings /wp-admin/options-general.php?page=fmenu-settings | 3.00 | 29.54 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by FMenu - FOSS of Five
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,849 ▲253 | 16.58 ▲0.99 | 13.74 ▲4.92 | 49.61 ▲4.05 |
Dashboard /wp-admin | 2,999 ▲66 | 6.54 ▲0.57 | 151.30 ▼31.26 | 116.42 ▲5.27 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 3.02 ▲0.31 | 67.93 ▼5.61 | 91.94 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,639 ▲139 | 21.59 ▲3.01 | 338.79 ▼35.25 | 121.88 ▲17.11 |
Media Library /wp-admin/upload.php | 1,839 ▲32 | 5.44 ▲0.42 | 138.16 ▼7.61 | 123.03 ▲6.63 |
FMenu Settings /wp-admin/options-general.php?page=fmenu-settings | 1,918 | 3.29 | 98.09 | 82.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fmenu-settings
- > Notice in wp-content/plugins/fmenu/includes/admin.php+212
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fmenu/includes/core.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/fmenu/fmenu.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fmenu/includes/admin.php:258
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid version format
fmenu/fmenu.php Passed 13 tests
"FMenu - FOSS of Five" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Create a custom menu for your wordpress site in a simple way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected437 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 65 | 281 |
CSS | 1 | 23 | 10 | 142 |
JavaScript | 2 | 1 | 4 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin