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.03MB] [CPU: ▼0.73ms] Passed 4 tests
This is a short check of server-side resources used by Min Calendar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 43.42 ▼1.98 |
Dashboard /wp-admin | 3.34 ▲0.04 | 53.38 ▲2.64 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.87 ▼2.95 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.43 ▲5.77 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.14 ▼0.64 |
Appearance /wp-admin/admin.php?page=mincalenar-appearance | 3.23 | 34.36 |
Edit /wp-admin/admin.php?page=mincalendar | 3.25 | 36.06 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
mincalendar |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Min Calendar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 14.77 ▲0.37 | 1.73 ▼0.08 | 43.29 ▼2.41 |
Dashboard /wp-admin | 2,236 ▲45 | 4.86 ▼0.05 | 103.75 ▼3.20 | 43.58 ▼2.08 |
Posts /wp-admin/edit.php | 2,116 ▲30 | 2.00 ▲0.01 | 36.65 ▼3.31 | 32.75 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 17.64 ▼5.76 | 611.16 ▼51.61 | 51.03 ▼8.02 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.17 ▼0.00 | 96.90 ▲0.61 | 40.67 ▲0.38 |
Appearance /wp-admin/admin.php?page=mincalenar-appearance | 1,275 | 2.03 | 24.34 | 28.87 |
Edit /wp-admin/admin.php?page=mincalendar | 1,064 | 2.32 | 27.56 | 29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- mincalendar
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > 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/min-calendar/admin/class-mc-list-table.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/min-calendar/admin/class-mc-list-table.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/min-calendar/min-calendar.php:41
- > 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/min-calendar/admin/class-mc-list-table.php on line 10
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (setting of appearance), #2 (create calendar shortcode), #3 (insert shortcode to post), #4 (display example), #5 (relate post to day)
min-calendar/min-calendar.php Passed 13 tests
The principal PHP file in "Min Calendar" v. 1.6.1 is loaded by WordPress automatically on each request
20 characters long description:
Add minimum calendar
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
There were no executable files found in this plugin2,016 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 194 | 794 | 1,653 |
CSS | 5 | 49 | 8 | 256 |
JavaScript | 4 | 32 | 50 | 107 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 22 | 28.57% |
▷ Public methods | 63 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 18.18% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 13 | 92.86% |
▷ Class constants | 1 | 7.14% |
▷ Public constants | 1 | 100.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
7 PNG files occupy 0.36MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/fade-butt.png | 0.77KB | 0.54KB | ▼ 29.68% |
screenshot-4.png | 78.64KB | 6.27KB | ▼ 92.02% |
screenshot-3.png | 93.12KB | 10.85KB | ▼ 88.35% |
admin/images/menu-icon.png | 0.59KB | 0.37KB | ▼ 37.46% |
screenshot-1.png | 103.00KB | 44.26KB | ▼ 57.03% |