Benchmarks
Plugin footprint Passed 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.05MB] [CPU: ▼256.33ms] Passed 4 tests
Analyzing server-side resources used by CodeFlavors floating menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 33.86 ▲13.01 |
Dashboard /wp-admin | 3.11 ▲0.05 | 44.03 ▲6.28 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 43.22 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 86.59 ▼1,026.67 |
Media Library /wp-admin/upload.php | 3.05 ▲0.04 | 29.45 ▼7.50 |
CodeFlavors Menu /wp-admin/themes.php?page=cfm_menu_options | 3.02 | 27.92 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for CodeFlavors floating menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 16.16 ▲0.23 | 10.14 ▼0.07 | 48.46 ▲3.03 |
Dashboard /wp-admin | 2,932 ▲82 | 5.94 ▼0.08 | 139.18 ▲3.77 | 100.65 ▼4.04 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▼0.00 | 64.11 ▼7.80 | 94.56 ▲6.99 |
Add New Post /wp-admin/post-new.php | 1,484 ▼167 | 18.54 ▲1.43 | 395.86 ▲13.39 | 117.49 ▲7.12 |
Media Library /wp-admin/upload.php | 1,721 ▼48 | 5.00 ▼0.04 | 141.10 ▼8.05 | 116.90 ▲4.63 |
CodeFlavors Menu /wp-admin/themes.php?page=cfm_menu_options | 1,118 | 2.09 | 60.48 | 66.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeflavors-floating-menu/floating_menu.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: animation, wordpress menu, menu, floating menu, drop down menu
codeflavors-floating-menu/floating_menu.php 92% from 13 tests
"CodeFlavors floating menu" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("codeflavors-floating-menu.php" instead of "floating_menu.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected552 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 110 | 275 |
CSS | 2 | 8 | 63 | 115 |
PO File | 2 | 34 | 34 | 110 |
JavaScript | 1 | 13 | 9 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dots-arrow-left.png | 0.16KB | 0.11KB | ▼ 31.93% |
images/open-menu-ico.png | 1.75KB | 1.32KB | ▼ 24.68% |
images/dots-arrow-right.png | 0.12KB | 0.11KB | ▼ 10.48% |