83% mastercurrency-wp

Code Review | Master Currency WP

WordPress plugin Master Currency WP scored 83% from 54 tests.

About plugin

  • Plugin page: mastercurrency-wp
  • Plugin version: 1.1.61
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.6.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Mar 7, 2021
  • Number of updates: 33
  • Update frequency: every 55.4 days
  • Top authors: wibergsweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,533 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲257.35ms] 75% from 4 tests

This is a short check of server-side resources used by Master Currency WP
It is recommended to improve the following
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 257.35ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.02325.48 ▲286.75
Dashboard /wp-admin3.32 ▲0.01329.56 ▲272.91
Posts /wp-admin/edit.php3.43 ▲0.08304.98 ▲254.92
Add New Post /wp-admin/post-new.php5.90 ▲0.01334.41 ▲240.86
Media Library /wp-admin/upload.php3.24 ▲0.01291.76 ▲260.71

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Master Currency WP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲6413.61 ▼0.808.25 ▲6.3242.85 ▼2.53
Dashboard /wp-admin2,205 ▼15.83 ▲0.0696.13 ▼1.8136.94 ▼4.87
Posts /wp-admin/edit.php2,091 ▼11.98 ▼0.0437.20 ▼1.7538.93 ▲2.16
Add New Post /wp-admin/post-new.php1,529 ▼421.27 ▼2.03676.06 ▼20.0857.55 ▲4.92
Media Library /wp-admin/upload.php1,393 ▲54.04 ▼0.18105.32 ▼4.1545.38 ▼1.89

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mastercurrency-wp/mastercurrencywp.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt might help

mastercurrency-wp/mastercurrencywp.php 85% from 13 tests

This is the main PHP file of "Master Currency WP" version 1.1.61, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mastercurrency-wp.php" instead of "mastercurrencywp.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 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
No dangerous file extensions were detected881 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1149288719
PO File1374288
XML10041
JavaScript18133

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity113.00
▷ Minimum class complexity113.00
▷ Maximum class complexity113.00
Average method complexity6.33
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions0
▷ Named functions00.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 are no PNG files in this plugin