Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▲1.59ms] Passed 4 tests
An overview of server-side resources used by Print Bangla News
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 46.08 ▲8.33 |
Dashboard /wp-admin | 3.38 ▲0.08 | 56.32 ▲2.58 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 50.82 ▲2.19 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 89.32 ▼3.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.21 ▲5.05 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Print Bangla News
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,067 ▲310 | 15.17 ▲0.69 | 5.89 ▲3.90 | 57.88 ▲16.94 |
Dashboard /wp-admin | 2,363 ▲189 | 6.51 ▲1.63 | 139.48 ▲24.04 | 45.38 ▲0.35 |
Posts /wp-admin/edit.php | 2,266 ▲177 | 3.35 ▲1.29 | 48.77 ▲6.48 | 33.12 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.42 ▼0.12 | 638.29 ▲26.91 | 35.62 ▼23.28 |
Media Library /wp-admin/upload.php | 1,405 ▲14 | 4.20 ▼0.00 | 82.67 ▼16.16 | 43.08 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 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 take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/print-bangla-news/templates/print.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/print-bangla-news/includes/settings.php:174
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/print-bangla-news/includes/settings.php:174
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: newspaper, bangla, print, newsportal
print-bangla-news/print-bangla-news.php Passed 13 tests
The primary PHP file in "Print Bangla News" version 2.0.1 is used by WordPress to initiate all plugin functionality
42 characters long description:
Prity News Print Page For Bangla Newspaper
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin11,000 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 143 | 1,280 | 1,401 | 8,539 |
Sass | 9 | 139 | 1 | 1,125 |
CSS | 20 | 78 | 115 | 985 |
PHP | 4 | 133 | 78 | 347 |
JSON | 1 | 0 | 0 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.24 |
▷ 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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assest/img/print-news.png | 6.69KB | 2.47KB | ▼ 63.07% |