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: ▼11.59ms] Passed 4 tests
A check of server-side resources used by Add infos to the events calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 24.06 ▼17.30 |
Dashboard /wp-admin | 3.40 ▲0.05 | 46.70 ▼15.56 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.27 ▼2.02 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 94.63 ▼10.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.51 ▼2.79 |
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page | 3.28 | 34.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add infos to the events calendar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.37 ▼1.31 | 1.75 ▼0.25 | 41.39 ▲1.42 |
Dashboard /wp-admin | 2,229 ▲38 | 5.11 ▼0.80 | 112.35 ▲12.39 | 41.62 ▼0.24 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.29 ▲0.30 | 40.54 ▼1.59 | 35.51 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.11 ▲5.57 | 705.80 ▲57.92 | 37.87 ▼16.19 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.49 ▲0.33 | 99.48 ▲1.41 | 43.69 ▲1.36 |
Add Infos to TEC Settings /wp-admin/options-general.php?page=ait_add_infos_to_tec_settings_page | 1,413 | 2.69 | 56.08 | 29.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-infos-to-the-events-calendar/add_shortcode_to_tec.php:33
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #8, #9 in add-infos-to-the-events-calendar/assets to your readme.txt
- Screenshots: Screenshot #6 (These fields can currently be filled automatically via the shortcode generator and then appear in the description at the point where the cursor was positioned.) image not found
add-infos-to-the-events-calendar/add_shortcode_to_tec.php 85% from 13 tests
Analyzing the main PHP file in "Add infos to the events calendar" version 1.4.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("add-infos-to-the-events-calendar.php" instead of "add_shortcode_to_tec.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 219 characters long)
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 detected914 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 100 | 242 | 478 |
PO File | 2 | 79 | 84 | 248 |
JavaScript | 2 | 14 | 43 | 151 |
CSS | 1 | 7 | 5 | 37 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/icons8-kalender-48.png | 0.28KB | 0.28KB | ▼ 1.04% |