Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.09MB] [CPU: ▼346.21ms] Passed 4 tests
An overview of server-side resources used by FattoreMamma Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 119.30 ▲66.61 |
Dashboard /wp-admin | 3.24 ▼0.17 | 19.29 ▼15.26 |
Posts /wp-admin/edit.php | 3.24 ▼0.40 | 20.47 ▼18.46 |
Add New Post /wp-admin/post-new.php | 3.24 ▼3.73 | 20.20 ▼1,345.64 |
Media Library /wp-admin/upload.php | 3.24 ▼0.05 | 19.45 ▼5.47 |
FattoreMamma Tools /wp-admin/options-general.php?page=fm_tools_page | 3.24 | 20.78 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for FattoreMamma Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲26 | 15.88 ▲0.03 | 6.43 ▼1.76 | 2.27 ▲0.07 |
Dashboard /wp-admin | 2,894 ▲34 | 6.19 ▲0.12 | 124.71 ▼2.12 | 191.27 ▲24.60 |
Posts /wp-admin/edit.php | 2,693 ▲23 | 3.23 ▼0.02 | 69.64 ▼41.01 | 206.69 ▲46.41 |
Add New Post /wp-admin/post-new.php | 1,664 ▼47 | 17.24 ▼4.10 | 421.19 ▼17.36 | 159.16 ▼34.92 |
Media Library /wp-admin/upload.php | 1,700 ▲5 | 5.49 ▲0.03 | 187.17 ▲24.83 | 192.75 ▼44.34 |
FattoreMamma Tools /wp-admin/options-general.php?page=fm_tools_page | 1,003 | 2.38 | 54.52 | 133.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/fm-tools/includes/class-fm-tools-admin.php+27
Undefined index: active
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
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fm_tools_page
- > Notice in wp-content/plugins/fm-tools/includes/class-fm-tools-settings.php+222
Undefined index: active
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/fm-tools/uninstall.php:7
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: The plugin contributors field is missing
fm-tools/fm-tools.php 92% from 13 tests
"FattoreMamma Tools" version 2.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin376 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 139 | 155 | 319 |
PO File | 1 | 15 | 17 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin