Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/malaysia-prayer-times/malaysia-prayer-times.php+196
Methods with the same name as their class will not be constructors in a future version of PHP; MPT_Widget_All has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼45.33ms] Passed 4 tests
An overview of server-side resources used by Malaysia Prayer Times
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 9.15 ▼29.50 |
Dashboard /wp-admin | 2.30 ▼1.01 | 11.01 ▼35.75 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 11.68 ▼38.09 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 10.02 ▼77.98 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 10.37 ▼26.22 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_mpt-widget-all |
widget_mpt-widget-now |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Malaysia Prayer Times
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲94 | 13.73 ▲0.44 | 5.55 ▲1.10 | 40.56 ▼1.19 |
Dashboard /wp-admin | 2,206 ▼0 | 5.91 ▲0.03 | 97.57 ▲4.01 | 38.91 ▼0.16 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.03 | 40.66 ▼0.68 | 36.55 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.03 ▲0.05 | 702.94 ▲14.96 | 51.79 ▼10.03 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▲0.03 | 95.05 ▼10.01 | 40.59 ▼7.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in MPT_Widget_Now is deprecated since version 4.3.0! Use __construct() instead.
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_mpt-widget-now
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_mpt-widget-all
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/malaysia-prayer-times/malaysia-prayer-times.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: solah, malaysia, solat, shalat, prayer...
malaysia-prayer-times/malaysia-prayer-times.php Passed 13 tests
The main PHP file in "Malaysia Prayer Times" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
Widget that shows current or all prayer times for locations in Malaysia. Data by JAKIM.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,174 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 112 | 19 | 515 |
PHP | 2 | 37 | 34 | 490 |
JavaScript | 2 | 41 | 29 | 169 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/select2.png | 0.60KB | 0.99KB | 0.00% |
img/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |