Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.56ms] Passed 4 tests
A check of server-side resources used by Enrico
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.38 ▲0.55 |
Dashboard /wp-admin | 3.36 ▲0.06 | 39.76 ▼6.50 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.16 ▼6.49 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 75.88 ▼9.81 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.55 ▲1.37 |
Partner Categories /wp-admin/edit-tags.php?taxonomy=partner_type&post_type=enrico | 3.28 | 29.54 |
Add New Company /wp-admin/post-new.php?post_type=enrico | 3.41 | 52.23 |
Enrico Import /wp-admin/edit.php?post_type=enrico&page=enrico_company_import | 3.25 | 31.03 |
Enrico /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php | 3.22 | 34.22 |
Directory Refresh /wp-admin/edit.php?post_type=enrico&page=enrico_dir_refresh | 3.25 | 30.49 |
Enrico Directory /wp-admin/edit.php?post_type=enrico | 3.33 | 34.02 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options |
---|
enrico_map_preferredMap |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
enrico_archive_posts_sort_order |
can_compress_scripts |
db_upgraded |
enrico_archive_posts_sort_term |
Browser metrics Passed 4 tests
A check of browser resources used by Enrico
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲79 | 13.29 ▼1.09 | 1.61 ▼0.27 | 37.56 ▼1.89 |
Dashboard /wp-admin | 2,246 ▲55 | 5.90 ▲0.04 | 110.28 ▲11.31 | 42.81 ▼0.81 |
Posts /wp-admin/edit.php | 2,132 ▲40 | 2.00 ▼0.01 | 39.91 ▼3.39 | 34.80 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 17.46 ▼0.10 | 664.12 ▲76.48 | 52.27 ▼7.63 |
Media Library /wp-admin/upload.php | 1,428 ▲37 | 4.24 ▼0.01 | 94.43 ▲0.94 | 41.58 ▼1.57 |
Partner Categories /wp-admin/edit-tags.php?taxonomy=partner_type&post_type=enrico | 1,302 | 2.14 | 29.64 | 29.70 |
Add New Company /wp-admin/post-new.php?post_type=enrico | 2,466 | 3.89 | 78.37 | 62.87 |
Enrico Import /wp-admin/edit.php?post_type=enrico&page=enrico_company_import | 915 | 2.03 | 22.84 | 27.29 |
Enrico /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php | 1,019 | 2.04 | 23.23 | 28.62 |
Directory Refresh /wp-admin/edit.php?post_type=enrico&page=enrico_dir_refresh | 804 | 2.06 | 25.13 | 25.64 |
Enrico Directory /wp-admin/edit.php?post_type=enrico | 1,203 | 1.96 | 30.60 | 29.82 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- enrico_archive_posts_sort_order
- widget_recent-comments
- enrico_map_preferredMap
- enrico_archive_posts_sort_term
- theysaidso_admin_options
- can_compress_scripts
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 server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+141
Use of undefined constant homepage - assumed 'homepage' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Notice in wp-content/plugins/enrico/adminpages/enrico_settings.php+156
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+144
Use of undefined constant altURL - assumed 'altURL' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+147
Use of undefined constant facebook - assumed 'facebook' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+150
Use of undefined constant email - assumed 'email' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+153
Use of undefined constant infoPageLink - assumed 'infoPageLink' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=enrico/adminpages/enrico_settings.php
- > Warning in wp-content/plugins/enrico/adminpages/enrico_settings.php+156
Use of undefined constant directions - assumed 'directions' (this will throw an Error in a future version of PHP)
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 take a closer look at the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/enrico/enrico.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/enrico/templates/archive-enrico.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/enrico/templates/single-enrico.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/enrico/templates/taxonomy-partner_type.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: enirose, eniro map, google map, company directory, gulesiderno...
enrico/enrico.php Passed 13 tests
The main PHP file in "Enrico" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Eniro API support for registering Company Posts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,283 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 732 | 70 | 1,144 |
CSS | 1 | 36 | 3 | 85 |
JavaScript | 1 | 23 | 4 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin