79% nepali-post-date

Code Review | Nepali Post Date

WordPress plugin Nepali Post Date scored79%from 54 tests.

About plugin

  • Plugin page: nepali-post-date
  • Plugin version: 5.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.5
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Aug 11, 2020
  • Number of updates: 60
  • Update frequency: every 24.3 days
  • Top authors: shankhadev123 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /11,806 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼30.88ms] Passed 4 tests

An overview of server-side resources used by Nepali Post Date
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1641.74 ▼4.44
Dashboard /wp-admin3.07 ▼0.2426.29 ▼16.55
Posts /wp-admin/edit.php3.07 ▼0.2926.00 ▼23.49
Add New Post /wp-admin/post-new.php3.07 ▼2.8224.53 ▼71.05
Media Library /wp-admin/upload.php3.07 ▼0.1622.87 ▼12.41

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Nepali Post Date
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.74 ▼0.511.72 ▼0.4551.76 ▲15.13
Dashboard /wp-admin2,206 ▲184.88 ▼1.02105.86 ▲6.6741.69 ▼3.62
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0734.93 ▼6.8031.69 ▼4.90
Add New Post /wp-admin/post-new.php1,539 ▲623.52 ▲0.31679.82 ▼13.5863.55 ▲7.63
Media Library /wp-admin/upload.php1,388 ▲34.26 ▼0.1394.91 ▼9.3042.51 ▲0.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/nepali-post-date/class.nepali.date.admin.php+60
    Undefined index: today_date_format
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Admin setting), #2 (Front Display)
You can look at the official readme.txt

nepali-post-date/nepali-post-date.php 92% from 13 tests

"Nepali Post Date" version 5.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected793 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4142193765
PO File16628

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity30.00
▷ Minimum class complexity6.00
▷ Maximum class complexity70.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin