Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/demomentsomtres-address/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
Server metrics [RAM: ▲0.36MB] [CPU: ▼334.70ms] Passed 4 tests
This is a short check of server-side resources used by DeMomentSomTres Address
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.74 ▲1.22 | 13.12 ▼41.29 |
Dashboard /wp-admin | 4.76 ▲1.34 | 13.50 ▼20.37 |
Posts /wp-admin/edit.php | 4.76 ▲1.11 | 12.28 ▼27.23 |
Add New Post /wp-admin/post-new.php | 4.76 ▼2.22 | 13.50 ▼1,249.89 |
Media Library /wp-admin/upload.php | 4.76 ▲1.46 | 11.67 ▼19.83 |
Microdata Address /wp-admin/options-general.php?page=dmst_address | 4.76 | 12.71 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 4.76 | 13.84 |
Server storage [IO: ▲1.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 125 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_debug_mode |
fs_accounts |
fs_api_cache |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for DeMomentSomTres Address
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,843 ▲89 | 15.78 ▲0.69 | 6.14 ▼0.14 | 2.41 ▲0.16 |
Dashboard /wp-admin | 2,949 ▲95 | 6.13 ▼0.09 | 127.01 ▼13.83 | 280.45 ▲101.77 |
Posts /wp-admin/edit.php | 2,749 ▲55 | 3.23 ▼0.01 | 65.28 ▲1.21 | 207.35 ▲61.85 |
Add New Post /wp-admin/post-new.php | 1,699 ▲38 | 15.96 ▼1.15 | 439.84 ▲0.60 | 163.78 ▼31.76 |
Media Library /wp-admin/upload.php | 1,754 ▲59 | 5.50 ▼0.04 | 147.92 ▲11.15 | 284.84 ▲87.37 |
Microdata Address /wp-admin/options-general.php?page=dmst_address | 1,459 | 2.41 | 53.92 | 178.66 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 28 | 0.94 | 0.03 | 16.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/demomentsomtres-address/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
- Zombie WordPress options detected upon uninstall: 4 options
- fs_active_plugins
- fs_api_cache
- fs_accounts
- fs_debug_mode
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=freemius
- > Notice in wp-content/plugins/demomentsomtres-address/freemius/includes/managers/class-fs-admin-menu-manager.php+123
Undefined index: slug
- > GET request to /wp-admin/options-general.php?page=dmst_address
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dmst_address
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 30 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dmst_address
- > Notice in wp-content/plugins/demomentsomtres-address/admin.php+324
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/demomentsomtres-address/admin.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=freemius
- > Network (severe)
wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The plugin content in our web page http://demomentsomtres.com), #2 (The plugin admin page)
demomentsomtres-address/demomentsomtres-address.php Passed 13 tests
Analyzing the main PHP file in "DeMomentSomTres Address" version 2.1
82 characters long description:
DeMomentSomTres Address helps you insert your address using microdata on your web.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected20,547 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 3,370 | 8,175 | 14,786 |
PO File | 4 | 1,422 | 1,439 | 3,651 |
Sass | 15 | 267 | 82 | 1,636 |
JavaScript | 4 | 37 | 63 | 229 |
Markdown | 1 | 61 | 0 | 192 |
JSON | 2 | 0 | 0 | 42 |
CSS | 9 | 0 | 0 | 11 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,019)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 43.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 2 | 5.56% |
▷ Concrete classes | 34 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 655 | |
▷ Static methods | 90 | 13.74% |
▷ Public methods | 485 | 74.05% |
▷ Protected methods | 12 | 1.83% |
▷ Private methods | 158 | 24.12% |
Functions | 103 | |
▷ Named functions | 98 | 95.15% |
▷ Anonymous functions | 5 | 4.85% |
Constants | 98 | |
▷ Global constants | 81 | 82.65% |
▷ Class constants | 17 | 17.35% |
▷ Public constants | 17 | 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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 45.14KB | 16.45KB | ▼ 63.55% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
screenshot-1.png | 108.33KB | 38.84KB | ▼ 64.15% |