84% nepali-chrono-craft

Code Review | Nepali Chrono Craft

WordPress plugin Nepali Chrono Craft scored84%from 54 tests.

About plugin

  • Plugin page: nepali-chrono-craft
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 18, 2023
  • Latest release: Oct 19, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: wprefers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /22 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.50ms] Passed 4 tests

Server-side resources used by Nepali Chrono Craft
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.85 ▼3.80
Dashboard /wp-admin3.38 ▲0.0747.51 ▼2.57
Posts /wp-admin/edit.php3.49 ▲0.1350.01 ▼0.33
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.65 ▼11.30
Media Library /wp-admin/upload.php3.30 ▲0.0739.89 ▲4.62

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Nepali Chrono Craft: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲11413.68 ▼0.748.39 ▲6.2642.73 ▼2.96
Dashboard /wp-admin2,192 ▲215.56 ▼0.0286.00 ▼17.5339.32 ▼5.49
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0136.77 ▼4.0632.04 ▼5.30
Add New Post /wp-admin/post-new.php1,526 ▼023.63 ▲0.31676.89 ▼41.3152.19 ▼18.07
Media Library /wp-admin/upload.php1,394 ▼04.29 ▲0.13104.14 ▼2.7046.23 ▲0.75

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/nepali-chrono-craft/src/templates/template-nepali-chrono-craft.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

nepali-chrono-craft/nepali-chrono-craft.php 92% from 13 tests

"Nepali Chrono Craft" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 216 characters long)

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 plugin860 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP12154270721
CSS113170
JavaScript19043
JSON11026

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.17
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods38
▷ Static methods410.53%
▷ Public methods3386.84%
▷ Protected methods00.00%
▷ Private methods513.16%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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 files were detected