84% naixer-currency-converter

Code Review | Naixer Currency Converter

WordPress plugin Naixer Currency Converter scored84%from 54 tests.

About plugin

  • Plugin page: naixer-currency-c...
  • Plugin version: 0.2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.1
  • WordPress version: 6.3.1
  • First release: May 30, 2015
  • Latest release: May 30, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: naixer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests

Analyzing server-side resources used by Naixer Currency Converter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.03 ▼8.06
Dashboard /wp-admin3.31 ▲0.0050.97 ▼0.17
Posts /wp-admin/edit.php3.36 ▲0.0047.73 ▼6.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.42 ▼4.58
Media Library /wp-admin/upload.php3.23 ▲0.0041.10 ▲8.61

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

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

Browser metrics Passed 4 tests

Naixer Currency Converter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.091.89 ▲0.2643.79 ▲4.19
Dashboard /wp-admin2,198 ▲215.62 ▼0.0498.03 ▲6.6740.64 ▲4.18
Posts /wp-admin/edit.php2,100 ▼02.03 ▼0.1035.89 ▼3.4434.60 ▲2.56
Add New Post /wp-admin/post-new.php1,534 ▲818.06 ▼5.74653.01 ▼36.2685.87 ▲32.23
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.02112.95 ▲9.5647.72 ▲1.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/naixer-currency-converter/index.php:389

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (`/assets/screenshot-1.jpg`), #2 (`/assets/screenshot-2.jpg`), #3 (`/assets/screenshot-3.jpg`), #4 (`/assets/screenshot-4.jpg`)
Please take inspiration from this readme.txt

naixer-currency-converter/index.php 92% from 13 tests

"Naixer Currency Converter" version 0.2.4.1'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:
  • Main file name: Name the main plugin file the same as the plugin slug ("naixer-currency-converter.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin378 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP148378

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin