10% pbp-ekattor

Code Review | একাত্তর | ekattor

WordPress plugin একাত্তর | ekattor scored 10% from 54 tests.

About plugin

  • Plugin page: pbp-ekattor
  • Plugin version: ১.২...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2015
  • Latest release: Apr 19, 2015
  • Number of updates: 23
  • Update frequency: every 0.2 days
  • Top authors: projoktibangla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 810 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.28 ▼37.78
Dashboard /wp-admin2.05 ▼1.265.61 ▼43.60
Posts /wp-admin/edit.php2.05 ▼1.316.66 ▼39.83
Add New Post /wp-admin/post-new.php2.05 ▼3.845.76 ▼86.82
Media Library /wp-admin/upload.php2.05 ▼1.186.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.27 ▼0.691.76 ▼0.0241.33 ▼2.19
Dashboard /wp-admin2,212 ▲245.83 ▼0.05101.80 ▼13.8644.54 ▼2.56
Posts /wp-admin/edit.php2,080 ▼92.02 ▲0.0538.25 ▲2.0039.74 ▼0.83
Add New Post /wp-admin/post-new.php1,529 ▲1522.95 ▲5.43573.51 ▼97.1739.29 ▼11.57
Media Library /wp-admin/upload.php1,403 ▲154.19 ▲0.0296.30 ▼2.1044.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP45939437
CSS240112
JavaScript11114

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 code0.06
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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