10% nepali-forex-rate

Code Review | Nepali Forex Rate

WordPress plugin Nepali Forex Rate scored10%from 54 tests.

About plugin

  • Plugin page: nepali-forex-rate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2015
  • Latest release: Jan 24, 2016
  • Number of updates: 9
  • Update frequency: every 15.2 days
  • Top authors: spikersolns (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,448 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/nepali-forex-rate/Nepali-forex-rate.php+10
    Constant WP_DEBUG already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.41ms] Passed 4 tests

A check of server-side resources used by Nepali Forex Rate
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.73 ▼40.35
Dashboard /wp-admin2.05 ▼1.266.20 ▼41.86
Posts /wp-admin/edit.php2.05 ▼1.315.90 ▼44.20
Add New Post /wp-admin/post-new.php2.05 ▼3.846.21 ▼87.24
Media Library /wp-admin/upload.php2.05 ▼1.185.24 ▼27.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Nepali Forex Rate: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.63 ▼0.771.70 ▼0.2542.70 ▲2.12
Dashboard /wp-admin2,209 ▲244.86 ▼1.02103.53 ▼0.9139.02 ▼6.14
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0335.46 ▼8.4632.18 ▼2.53
Add New Post /wp-admin/post-new.php1,514 ▼2817.70 ▼0.62648.50 ▲47.5148.61 ▼3.35
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.1199.73 ▼6.6643.34 ▼2.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/nepali-forex-rate/Nepali-forex-rate.php+10
    Constant WP_DEBUG already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/nepali-forex-rate/display_rate.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nepali-forex-rate/Nepali-forex-rate.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: nepal, foreign exchange, nepali forex, nrb, binimaya...

nepali-forex-rate/Nepali-forex-rate.php 85% from 13 tests

The entry point to "Nepali Forex Rate" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nepali-forex-rate.php" instead of "Nepali-forex-rate.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 326 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin59 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21846
CSS11113

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/logo.png3.42KB0.34KB▼ 90.04%