Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.74MB] [CPU: ▼46.28ms] Passed 4 tests
This is a short check of server-side resources used by Simple Hijri Calendar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.25 ▼0.22 | 14.78 ▼24.21 |
Dashboard /wp-admin | 3.28 ▼0.06 | 18.10 ▼41.37 |
Posts /wp-admin/edit.php | 3.29 ▼0.07 | 16.52 ▼34.52 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.60 | 16.26 ▼85.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 17.88 ▼20.48 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_simple_hijri_calendar |
widget_recent-posts |
Browser metrics Passed 4 tests
Simple Hijri Calendar: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.43 ▼0.92 | 8.53 ▲6.96 | 38.60 ▼1.40 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.02 | 83.46 ▼2.07 | 39.01 ▼1.47 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.99 ▼0.02 | 34.46 ▼6.67 | 32.16 ▼6.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.16 ▼0.85 | 692.22 ▲29.34 | 51.81 ▼6.47 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.01 | 108.85 ▼8.06 | 47.44 ▼4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/simple-hijri-calendar/class/uCal.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; uCal has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_simple_hijri_calendar
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-hijri-calendar/simple-hijri-calendar-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #2 in simple-hijri-calendar/assets to your readme.txt
simple-hijri-calendar/simple-hijri-calendar.php Passed 13 tests
The main PHP script in "Simple Hijri Calendar" version 2.1.2 is automatically included on every request by WordPress
30 characters long description:
A simple hijri calendar widget
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
No dangerous file extensions were detected540 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 53 | 149 | 342 |
CSS | 1 | 27 | 1 | 127 |
PO File | 1 | 15 | 16 | 46 |
JavaScript | 1 | 5 | 4 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tombol-donasi.png | 0.89KB | 0.50KB | ▼ 43.25% |
assets/img/sore.png | 22.10KB | 9.61KB | ▼ 56.53% |
assets/img/malam.png | 17.40KB | 11.23KB | ▼ 35.47% |
assets/img/siang.png | 22.66KB | 10.86KB | ▼ 52.07% |
assets/img/pagi.png | 22.49KB | 10.18KB | ▼ 54.76% |