Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.35MB] [CPU: ▼297.64ms] 75% from 4 tests
An overview of server-side resources used by Custom Post Type, Custom Fields and Custom Taxonomies - Margarita
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 642.05ms on /wp-admin/admin.php?page=margarita_store)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.36 | 56.72 ▲3.68 |
Dashboard /wp-admin | 3.76 ▲0.35 | 35.11 ▲0.12 |
Posts /wp-admin/edit.php | 4.01 ▲0.37 | 40.70 ▼12.28 |
Add New Post /wp-admin/post-new.php | 7.31 ▲0.34 | 96.55 ▼1,176.90 |
Media Library /wp-admin/upload.php | 3.71 ▲0.41 | 27.07 ▼1.48 |
Add New /wp-admin/post-new.php?post_type=emd_basic_calcs | 3.88 | 38.49 |
Add New /wp-admin/post-new.php?post_type=emd_contact | 3.95 | 47.26 |
All Basic Calculations /wp-admin/edit.php?post_type=emd_basic_calcs | 3.78 | 29.55 |
Support /wp-admin/admin.php?page=margarita_support | 3.72 | 636.52 |
Glossary /wp-admin/admin.php?page=margarita | 3.61 | 25.16 |
Contact Category /wp-admin/edit-tags.php?taxonomy=contact_category&post_type=emd_contact | 3.71 | 27.26 |
All Contacts /wp-admin/edit.php?post_type=emd_contact | 3.78 | 29.26 |
Settings /wp-admin/admin.php?page=margarita_settings | 3.61 | 23.54 |
Contact Tags /wp-admin/edit-tags.php?taxonomy=contact_tag&post_type=emd_contact | 3.72 | 30.25 |
Add-Ons /wp-admin/admin.php?page=margarita_store | 3.73 | 642.05 |
Server storage [IO: ▲0.69MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 142 new files
Database: no new tables, 7 new options
New WordPress options |
---|
margarita_version |
margarita_emd_contact_terms_init |
margarita_attr_list |
emd_licenses |
margarita_shc_list |
margarita_tax_list |
margarita_ent_list |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Type, Custom Fields and Custom Taxonomies - Margarita
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,906 ▲184 | 15.81 ▼0.18 | 6.36 ▲0.65 | 2.35 ▼0.22 |
Dashboard /wp-admin | 3,030 ▲169 | 6.16 ▼0.02 | 121.65 ▼9.69 | 157.48 ▲4.91 |
Posts /wp-admin/edit.php | 2,829 ▲138 | 3.26 ▲0.02 | 62.93 ▼1.86 | 141.81 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,748 ▲87 | 16.42 ▲0.12 | 407.99 ▲18.26 | 151.49 ▼0.55 |
Media Library /wp-admin/upload.php | 1,831 ▲133 | 5.56 ▲0.09 | 135.97 ▼7.50 | 184.51 ▼14.64 |
Add New /wp-admin/post-new.php?post_type=emd_basic_calcs | 2,172 | 4.97 | 175.87 | 116.73 |
Add New /wp-admin/post-new.php?post_type=emd_contact | 2,520 | 4.63 | 86.83 | 141.09 |
All Basic Calculations /wp-admin/edit.php?post_type=emd_basic_calcs | 1,514 | 3.18 | 61.39 | 110.91 |
Support /wp-admin/admin.php?page=margarita_support | 1,613 | 2.44 | 54.49 | 165.74 |
Glossary /wp-admin/admin.php?page=margarita | 1,440 | 2.71 | 53.02 | 108.37 |
Contact Category /wp-admin/edit-tags.php?taxonomy=contact_category&post_type=emd_contact | 1,920 | 2.78 | 55.99 | 135.69 |
All Contacts /wp-admin/edit.php?post_type=emd_contact | 1,630 | 3.20 | 60.03 | 113.68 |
Settings /wp-admin/admin.php?page=margarita_settings | 1,243 | 2.55 | 53.22 | 127.12 |
Contact Tags /wp-admin/edit-tags.php?taxonomy=contact_tag&post_type=emd_contact | 2,107 | 2.81 | 57.42 | 137.27 |
Add-Ons /wp-admin/admin.php?page=margarita_store | 1,633 | 2.47 | 58.59 | 132.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 2 options
- emd_licenses
- margarita_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emd_basic_calcs
- > User notice in wp-includes/functions.php+5768
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emd_basic_calcs
- > Warning in wp-content/plugins/margarita/includes/calculate-functions.php+35
A non-numeric value encountered
- > GET request to /wp-admin/post-new.php?post_type=emd_basic_calcs
- > Warning in wp-content/plugins/margarita/includes/calculate-functions.php+35
Division by zero
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'EMD_MB_Field' not found in wp-content/plugins/margarita/assets/ext/emd-meta-box/inc/fields/file-input.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/margarita/assets/ext/emd-meta-box/inc/init.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/margarita/layouts/single-emd-contact.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/margarita/layouts/single-emd-basic-calcs.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/wpcontact-arch-320x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/spotlight-arch-300x200.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/wpticket-arch-320x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/youtubesc-arch-320x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/emddir-arch-300x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/sim-arch-320x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/kcenter-arch-300x200.gif - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/campusdir-arch-300x200.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=margarita_store
- > Network (severe)
https://emdplugins.com/wp-content/uploads/images/logos/wpee-arch-300x200.gif - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 97% 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:
- Screenshots: Add a description for screenshot #6 in margarita/assets to your readme.txt
margarita/margarita.php Passed 13 tests
"Custom Post Type, Custom Fields and Custom Taxonomies - Margarita" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
132 characters long description:
Margarita is a demo app showcasing basic capabilities of WP App Studio. Margarita can be implemented using FreeDev Development plan.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin9,992 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 68 | 639 | 2,722 | 7,371 |
JavaScript | 31 | 241 | 257 | 1,579 |
CSS | 22 | 76 | 45 | 1,042 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 14.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 53 | 100.00% |
▷ Final classes | 1 | 1.89% |
Methods | 266 | |
▷ Static methods | 193 | 72.56% |
▷ Public methods | 257 | 96.62% |
▷ Protected methods | 2 | 0.75% |
▷ Private methods | 7 | 2.63% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ext/emd-meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
assets/ext/emd-meta-box/img/jqueryui/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/ext/emd-meta-box/css/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/ext/emd-meta-box/img/jqueryui/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/ext/emd-meta-box/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |