84% print-bangla-news

Code Review | Print Bangla News

WordPress plugin Print Bangla News scored84%from 54 tests.

About plugin

  • Plugin page: print-bangla-news
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 16, 2022
  • Latest release: Jan 18, 2023
  • Number of updates: 22
  • Update frequency: every 5.6 days
  • Top authors: synthiasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /2,560 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.08 ▲8.33
Dashboard /wp-admin3.38 ▲0.0856.32 ▲2.58
Posts /wp-admin/edit.php3.47 ▲0.1250.82 ▲2.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0789.32 ▼3.45
Media Library /wp-admin/upload.php3.28 ▲0.0541.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲31015.17 ▲0.695.89 ▲3.9057.88 ▲16.94
Dashboard /wp-admin2,363 ▲1896.51 ▲1.63139.48 ▲24.0445.38 ▲0.35
Posts /wp-admin/edit.php2,266 ▲1773.35 ▲1.2948.77 ▲6.4833.12 ▼1.51
Add New Post /wp-admin/post-new.php1,532 ▲1323.42 ▼0.12638.29 ▲26.9135.62 ▼23.28
Media Library /wp-admin/upload.php1,405 ▲144.20 ▼0.0082.67 ▼16.1643.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript1431,2801,4018,539
Sass913911,125
CSS2078115985
PHP413378347
JSON1003
SVG1001

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 code0.29
Average class complexity11.50
▷ Minimum class complexity6.00
▷ Maximum class complexity17.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assest/img/print-news.png6.69KB2.47KB▼ 63.07%