Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pbp-ekattor/onthisday1971.php+132
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.01ms] Passed 4 tests
Analyzing server-side resources used by একাত্তর | ekattor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.28 ▼37.78 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.61 ▼43.60 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.66 ▼39.83 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.76 ▼86.82 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.30 ▼23.90 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_onthisday1971 |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by একাত্তর | ekattor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.27 ▼0.69 | 1.76 ▼0.02 | 41.33 ▼2.19 |
Dashboard /wp-admin | 2,212 ▲24 | 5.83 ▼0.05 | 101.80 ▼13.86 | 44.54 ▼2.56 |
Posts /wp-admin/edit.php | 2,080 ▼9 | 2.02 ▲0.05 | 38.25 ▲2.00 | 39.74 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 22.95 ▲5.43 | 573.51 ▼97.17 | 39.29 ▼11.57 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.19 ▲0.02 | 96.30 ▼2.10 | 44.54 ▲2.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/pbp-ekattor/onthisday1971.php+132
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_onthisday1971
- theysaidso_admin_options
Smoke tests 75% 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 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pbp-ekattor/onthisday1971.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pbp-ekattor/war-sector.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pbp-ekattor/heros.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pbp-ekattor/heros.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: shortcode, muktijuddho, widget, bangladesh, independent war...
pbp-ekattor/ekattor.php 77% from 13 tests
"একাত্তর | ekattor" version ১.২...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "১.২...")
- Description: Keep the plugin description shorter than 140 characters (currently 646 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pbp-ekattor.php" instead of "ekattor.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin563 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 39 | 437 |
CSS | 2 | 4 | 0 | 112 |
JavaScript | 1 | 1 | 1 | 14 |
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.06 |
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 | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
No PNG files were detected