Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.67ms] Passed 4 tests
A check of server-side resources used by Liturgical Day of the Week
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 33.70 ▼5.88 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.19 ▼17.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.72 ▲0.45 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.15 ▼5.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.75 ▼1.45 |
Liturgical DotW /wp-admin/admin.php?page=ldotw | 3.78 | 34.08 |
BD Plugins /wp-admin/admin.php?page=bearlydoug | 3.21 | 34.33 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
bdtzoffset |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Liturgical Day of the Week: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲62 | 14.25 ▼0.43 | 1.55 ▼0.13 | 38.23 ▼5.60 |
Dashboard /wp-admin | 2,230 ▲53 | 5.71 ▲0.06 | 92.86 ▼5.02 | 90.77 ▲49.12 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.00 ▼0.01 | 39.34 ▲3.07 | 33.17 ▼6.60 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.80 ▲0.94 | 602.19 ▲6.46 | 155.18 ▲97.75 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.22 ▲0.07 | 94.16 ▼1.75 | 72.41 ▲32.64 |
Liturgical DotW /wp-admin/admin.php?page=ldotw | 1,427 | 1.84 | 28.72 | 48.79 |
BD Plugins /wp-admin/admin.php?page=bearlydoug | 1,418 | 2.01 | 25.36 | 36.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- bdtzoffset
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/liturgical-day-of-the-week/includes/index.php
- > /wp-content/plugins/liturgical-day-of-the-week/ldotw.php
- > /wp-content/plugins/liturgical-day-of-the-week/images/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/liturgical-day-of-the-week/functions-bd.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: saints, religious colors, memorials, liturgical day of the week, liturgical...
liturgical-day-of-the-week/ldotw.php 77% from 13 tests
The main PHP script in "Liturgical Day of the Week" version 1.0.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("liturgical-day-of-the-week.php" instead of "ldotw.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.5" instead of "5.2")
- Description: Please keep the plugin description shorter than 140 characters (currently 473 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,186 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 190 | 637 |
CSS | 2 | 78 | 40 | 463 |
JavaScript | 2 | 4 | 0 | 86 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.18MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/disable-gutenberg-plugin-icon.png | 16.22KB | 16.21KB | 0.05% |
images/vimeo.png | 0.55KB | 0.67KB | 0.00% |
images/delete.png | 0.96KB | 0.69KB | ▼ 27.68% |
images/spacer.png | 0.27KB | 0.09KB | ▼ 64.60% |
images/colorWheel.png | 2.04KB | 1.42KB | ▼ 30.46% |