Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.47ms] Passed 4 tests
An overview of server-side resources used by Tradays Economic Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.43 ▼2.46 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.47 ▼1.66 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.72 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.25 ▼10.13 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.21 ▼2.21 |
Server storage [IO: ▲0.30MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_tradays_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tradays Economic Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲84 | 13.30 ▲0.29 | 1.94 ▼3.08 | 41.05 ▼4.36 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼1.01 | 102.91 ▼3.51 | 36.96 ▼5.47 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.01 | 42.91 ▲6.92 | 38.78 ▲6.40 |
Add New Post /wp-admin/post-new.php | 6,357 ▲4,838 | 27.72 ▲4.46 | 832.17 ▲151.48 | 67.40 ▲7.38 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.23 ▼0.01 | 96.63 ▼0.66 | 41.16 ▼3.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_tradays_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tradays-economic-calendar/inc/class.shortcode.php
- > /wp-content/plugins/tradays-economic-calendar/inc/class.tradays.php
- > /wp-content/plugins/tradays-economic-calendar/tradays-economic-calendar.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tradays-economic-calendar/inc/class.widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/tradays-economic-calendar/views/widget-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: economic, events, tradays, widget, calendar
tradays-economic-calendar/tradays-economic-calendar.php 92% from 13 tests
"Tradays Economic Calendar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin8,063 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 7,288 |
PHP | 7 | 58 | 25 | 387 |
JavaScript | 5 | 32 | 30 | 314 |
PO File | 1 | 18 | 19 | 58 |
Sass | 2 | 0 | 0 | 12 |
SVG | 2 | 0 | 0 | 4 |
CSS | 1 | 0 | 11 | 0 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin