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
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/events-and-docs/eventsndocs.php+100
Undefined variable: eventsndocs
Server metrics [RAM: ▼1.92MB] [CPU: ▼52.83ms] Passed 4 tests
Analyzing server-side resources used by EventsnDocs
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.79 ▼30.03 |
Dashboard /wp-admin | 2.10 ▼1.24 | 6.20 ▼53.45 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.33 ▼38.88 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.11 ▼88.94 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.31 ▼25.96 |
Add New /wp-admin/post-new.php?post_type=eventsndocs | 2.10 | 6.26 |
All Events /wp-admin/edit.php?post_type=eventsndocs | 2.10 | 7.02 |
Event Categories /wp-admin/edit-tags.php?taxonomy=eventsndocs_cat&post_type=eventsndocs | 2.10 | 5.60 |
Events and Docs /wp-admin/options-general.php?page=eventsndocs | 2.10 | 6.86 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EventsnDocs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.77 ▲0.39 | 1.73 ▼0.11 | 42.02 ▼1.89 |
Dashboard /wp-admin | 2,245 ▲54 | 5.07 ▲0.17 | 111.51 ▲11.00 | 41.57 ▼2.32 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.03 ▼0.14 | 34.59 ▼2.49 | 35.09 ▲0.44 |
Add New Post /wp-admin/post-new.php | 6,243 ▲4,707 | 26.28 ▲3.15 | 938.57 ▲301.03 | 77.03 ▲24.51 |
Media Library /wp-admin/upload.php | 1,427 ▲42 | 4.19 ▼0.03 | 107.11 ▲11.31 | 46.95 ▲3.27 |
Add New /wp-admin/post-new.php?post_type=eventsndocs | 2,477 | 8.05 | 190.76 | 74.46 |
All Events /wp-admin/edit.php?post_type=eventsndocs | 1,164 | 2.25 | 36.04 | 29.67 |
Event Categories /wp-admin/edit-tags.php?taxonomy=eventsndocs_cat&post_type=eventsndocs | 1,298 | 2.15 | 27.15 | 25.91 |
Events and Docs /wp-admin/options-general.php?page=eventsndocs | 916 | 1.69 | 25.35 | 31.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/events-and-docs/eventsndocs.php+100
Undefined variable: eventsndocs
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eventsndocs
- > Notice in wp-content/plugins/events-and-docs/eventsndocs.php+100
Undefined variable: eventsndocs
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Notice in wp-content/plugins/events-and-docs/eventsndocs.php+87
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Notice in wp-content/plugins/events-and-docs/eventsndocs.php+65
Trying to access array offset on value of type null
- > GET request to /wp-admin/options-general.php?page=eventsndocs
- > Notice in wp-content/plugins/events-and-docs/optionspage.php+109
Undefined index: on_uninstall
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-and-docs/optionspage.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-and-docs/eventsndocs.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-and-docs/metaboxes.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-and-docs/dashboard.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/events-and-docs/shortcodes.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Network (severe)
http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 403 (Forbidden)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Network (severe)
http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 403 (Forbidden)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Javascript (severe) in unknown
https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js?ver=6.3.1 0:0 Uncaught ReferenceError: L is not defined
- > GET request to /wp-admin/post-new.php?post_type=eventsndocs
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: L is not defined" "ReferenceError: L is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/events-and-docs/js/map_backend.js?ver=6.3.1:8:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=eventsndocs
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught ReferenceError: L is not defined
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: L is not defined" "ReferenceError: L is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/events-and-docs/js/map_backend.js?ver=6.3.1:8:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=eventsndocs
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: L is not defined
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
events-and-docs/eventsndocs.php 69% from 13 tests
The main PHP script in "EventsnDocs" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("events-and-docs.php" instead of "eventsndocs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,084 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 50 | 185 | 1,021 |
CSS | 3 | 35 | 44 | 773 |
PO File | 1 | 75 | 76 | 191 |
JavaScript | 3 | 14 | 23 | 99 |
PHP code Passed 2 tests
This is a very shot review of 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 | 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 | 39 | |
▷ Named functions | 39 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |