Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.68MB] [CPU: ▼31.47ms] Passed 4 tests
This is a short check of server-side resources used by List-calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 37.50 ▼8.22 |
Dashboard /wp-admin | 3.26 ▼0.04 | 24.93 ▼20.85 |
Posts /wp-admin/edit.php | 3.26 ▼0.09 | 24.29 ▼24.83 |
Add New Post /wp-admin/post-new.php | 3.26 ▼2.62 | 25.45 ▼71.99 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 24.45 ▼8.02 |
Add New /wp-admin/admin.php?page=ltcr-new | 3.26 | 23.65 |
Settings /wp-admin/admin.php?page=ltcr-settings | 3.26 | 24.78 |
List /wp-admin/admin.php?page=ltcr | 3.26 | 24.43 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for List-calendar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.45 ▼0.18 | 1.81 ▼0.34 | 40.21 ▼5.97 |
Dashboard /wp-admin | 2,236 ▲51 | 4.83 ▼1.05 | 109.98 ▲7.38 | 41.50 ▼3.97 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.97 ▼0.17 | 39.56 ▲1.47 | 36.70 ▲3.46 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 18.31 ▲0.80 | 604.68 ▼81.19 | 50.30 ▼2.85 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.15 ▼0.06 | 96.31 ▼13.43 | 43.07 ▼4.95 |
Add New /wp-admin/admin.php?page=ltcr-new | 1,483 | 2.27 | 31.30 | 28.62 |
Settings /wp-admin/admin.php?page=ltcr-settings | 992 | 2.28 | 28.43 | 26.57 |
List /wp-admin/admin.php?page=ltcr | 1,060 | 2.29 | 29.30 | 29.42 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ltcr
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/list-calendar/admin/class-list.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/list-calendar/admin/class-list.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/list-calendar/list-calendar.php:33
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/list-calendar/admin/class-list.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=ltcr-settings
- > Network (severe)
wp-content/plugins/list-calendar/admin/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
2 plugin tags: calendar, shortcode
list-calendar/list-calendar.php 92% from 13 tests
The primary PHP file in "List-calendar" version 0.0.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,857 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 189 | 515 | 1,360 |
CSS | 2 | 45 | 5 | 221 |
PO File | 2 | 66 | 80 | 169 |
JavaScript | 4 | 32 | 50 | 107 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 63 | |
▷ Static methods | 12 | 19.05% |
▷ Public methods | 46 | 73.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 26.98% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 10 | 83.33% |
▷ Class constants | 2 | 16.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.62MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 142.22KB | 47.24KB | ▼ 66.79% |
screenshot-3.png | 135.47KB | 42.63KB | ▼ 68.53% |
screenshot-5.png | 92.33KB | 35.03KB | ▼ 62.06% |
screenshot-1.png | 145.60KB | 43.59KB | ▼ 70.06% |
screenshot-4.png | 118.74KB | 36.26KB | ▼ 69.46% |