73% current-currency-status

Code Review | Current currency status

WordPress plugin Current currency status scored73%from 54 tests.

About plugin

  • Plugin page: current-currency-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2017
  • Latest release: Mar 22, 2017
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: ifourkuldeep1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,083 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests

A check of server-side resources used by Current currency status
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.15 ▼6.66
Dashboard /wp-admin3.33 ▲0.0345.00 ▼4.01
Posts /wp-admin/edit.php3.38 ▲0.0252.92 ▲4.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.47 ▼15.76
Media Library /wp-admin/upload.php3.25 ▲0.0241.61 ▲3.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Current currency status: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲14113.61 ▼1.017.81 ▲5.7340.44 ▼6.08
Dashboard /wp-admin2,233 ▲594.92 ▼0.03110.87 ▼12.1073.24 ▲23.43
Posts /wp-admin/edit.php2,113 ▲242.03 ▼0.0239.47 ▲3.1439.40 ▲4.75
Add New Post /wp-admin/post-new.php1,689 ▲15622.67 ▼0.67695.17 ▲14.9330.76 ▼22.25
Media Library /wp-admin/upload.php1,406 ▲214.20 ▼0.06124.24 ▲12.8749.32 ▲2.83

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Current_currency_status::ccStatus_deactivation_hook() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/current-currency-status/inc/ccs-admin-layout.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/current-currency-status/inc/ccs-front-end.php:3

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

readme.txt 88% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #4, #5 in current-currency-status/assets to your readme.txt
  • Screenshots: Screenshot #1 (Admin backend to display currency update and calculate.) image required
You can look at the official readme.txt

current-currency-status/current-currency-status.php 92% from 13 tests

The principal PHP file in "Current currency status" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin2,529 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS82833371,619
SVG103540
PHP543113206
JavaScript25153164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.63MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png134.44KB44.74KB▼ 66.72%
assets/screenshot-1.png109.13KB31.04KB▼ 71.56%
assets/icon-128x128.png6.12KB3.08KB▼ 49.69%
assets/screenshot-4.png125.21KB42.28KB▼ 66.23%
assets/screenshot-2.png113.54KB32.97KB▼ 70.96%