10% auto-currency-converter

Code Review | Auto Currency Converter

WordPress plugin Auto Currency Converter scored10%from 54 tests.

About plugin

  • Plugin page: auto-currency-con...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.1.1
  • WordPress version: 6.3.1
  • First release: May 15, 2013
  • Latest release: May 20, 2019
  • Number of updates: 36
  • Update frequency: every 62.2 days
  • Top authors: akky (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,688 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/auto-currency-converter/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php+995
    Trying to access array offset on value of type null

Server metrics [RAM: ▼1.52MB] [CPU: ▼45.38ms] Passed 4 tests

A check of server-side resources used by Auto Currency Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.46 ▼1.008.49 ▼32.18
Dashboard /wp-admin2.48 ▼0.8211.94 ▼38.70
Posts /wp-admin/edit.php2.48 ▼0.8711.14 ▼34.83
Add New Post /wp-admin/post-new.php2.48 ▼3.4010.44 ▼75.82
Media Library /wp-admin/upload.php2.48 ▼0.759.73 ▼26.48
Auto Currency Converter /wp-admin/options-general.php?page=auto_currency_converter2.4810.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Currency Converter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9614.73 ▲0.101.80 ▲0.1341.60 ▼2.42
Dashboard /wp-admin2,223 ▲355.08 ▲0.19115.18 ▼3.1043.86 ▼0.13
Posts /wp-admin/edit.php2,103 ▲142.24 ▲0.2335.68 ▼0.9930.09 ▼13.63
Add New Post /wp-admin/post-new.php1,528 ▼523.50 ▲0.33659.02 ▼19.0861.06 ▲8.32
Media Library /wp-admin/upload.php1,408 ▲204.41 ▲0.1998.62 ▼15.1543.48 ▼5.12
Auto Currency Converter /wp-admin/options-general.php?page=auto_currency_converter8402.2326.2234.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/auto-currency-converter/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php+995
    Trying to access array offset on value of type null
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=auto_currency_converter
    • > Notice in wp-content/plugins/auto-currency-converter/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php+995
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 227× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Doctrine\\ORM\\Query\\Filter\\SQLFilter' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Doctrine\\Common\\Annotations\\Reader' not found in wp-content/plugins/auto-currency-converter/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Gedmo\\Mapping\\Event\\AdapterInterface' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Mapping/Event/Adapter/ORM.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Gedmo\\Mapping\\Event\\Adapter\\ORM' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/IpTraceable/Mapping/Event/Adapter/ORM.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Gedmo\\Mapping\\Event\\Adapter\\ODM' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Sluggable/Mapping/Event/Adapter/ODM.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Gedmo\\Mapping\\Event\\AdapterInterface' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Mapping/Event/LoggableAdapter.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Doctrine\\Common\\Annotations\\Annotation' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Mapping/Annotation/Uploadable.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Gedmo\\Mapping\\Driver\\File' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Mapping/Driver/Yaml.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Doctrine\\DBAL\\Logging\\SQLLogger' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tool/Logging/DBAL/QueryAnalyzer.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Gedmo\\Mapping\\Event\\Adapter\\ORM' not found in wp-content/plugins/auto-currency-converter/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Mapping/Event/Adapter/ORM.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: jpy, currency, japan, exchange, japanese...

auto-currency-converter/auto-currency-converter.php 85% from 13 tests

The principal PHP file in "Auto Currency Converter" v. 1.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Git Repository: An alternative Git repository was detected

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please make sure to remedy the following
  • Do not include executable or dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/auto-currency-converter/beautify.bat
      • wp-content/plugins/auto-currency-converter/generate_test.bat
      • wp-content/plugins/auto-currency-converter/unit_test.bat
25,251 lines of code in 518 files:
LanguageFilesBlank linesComment linesLines of code
PHP4884,13411,88223,126
JSON950958
CSS133152390
Markdown91560353
XSD24659243
PO File1499665
YAML211050
XML23033
DOS Batch34025
JavaScript1008

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.03
▷ Minimum class complexity1.00
▷ Maximum class complexity144.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces110
Interfaces38
Traits16
Classes260
▷ Abstract classes2610.00%
▷ Concrete classes23490.00%
▷ Final classes7029.91%
Methods1,347
▷ Static methods594.38%
▷ Public methods1,12583.52%
▷ Protected methods1339.87%
▷ Private methods896.61%
Functions27
▷ Named functions414.81%
▷ Anonymous functions2385.19%
Constants103
▷ Global constants00.00%
▷ Class constants103100.00%
▷ Public constants103100.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
PNG images were not found in this plugin