83% free-mubjib-borsho

Code Review | Mujib Borsho Countdown

WordPress plugin Mujib Borsho Countdown scored 83% from 54 tests.

About plugin

  • Plugin page: free-mubjib-borsho
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Jan 17, 2020
  • Latest release: Jan 21, 2020
  • Number of updates: 20
  • Update frequency: every 0.2 days
  • Top authors: synthiasoft (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 2,225 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.30ms] Passed 4 tests

Analyzing server-side resources used by Mujib Borsho Countdown
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0331.82 ▼2.09
Dashboard /wp-admin3.08 ▲0.0247.76 ▲1.76
Posts /wp-admin/edit.php3.13 ▲0.0236.52 ▼11.39
Add New Post /wp-admin/post-new.php5.43 ▲0.0085.44 ▼562.50
Media Library /wp-admin/upload.php3.02 ▲0.0234.27 ▼1.21

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
widget_mujib_count_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mujib Borsho Countdown
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲16716.44 ▲0.8912.37 ▲4.2146.39 ▼0.05
Dashboard /wp-admin2,970 ▲365.91 ▼0.04144.53 ▲0.74106.41 ▼1.30
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0172.47 ▲6.9289.28 ▲0.78
Add New Post /wp-admin/post-new.php1,615 ▲2121.32 ▲2.52322.70 ▼100.40106.29 ▼7.14
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.01157.10 ▲8.54110.55 ▼6.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_mujib_count_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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-mubjib-borsho/mujib_borsho.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt is a good inspiration

free-mubjib-borsho/mujib_borsho.php 85% from 13 tests

"Mujib Borsho Countdown" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("free-mubjib-borsho.php" instead of "mujib_borsho.php")

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
Everything looks great! No dangerous files found in this plugin381 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16919240
PHP1304389
CSS18352

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
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.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
mujib.png47.41KB16.99KB▼ 64.17%