84% hormozdi-cryptocurrencies

Code Review | Hormozdi Cryptocurrencies

WordPress plugin Hormozdi Cryptocurrencies scored 84% from 54 tests.

About plugin

  • Plugin page: hormozdi-cryptocu...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 1, 2018
  • Latest release: Jun 19, 2019
  • Number of updates: 14
  • Update frequency: every 20.9 days
  • Top authors: hormozdi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,092 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.52ms] Passed 4 tests

A check of server-side resources used by Hormozdi Cryptocurrencies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.19 ▼4.84
Dashboard /wp-admin3.32 ▲0.0151.03 ▼16.64
Posts /wp-admin/edit.php3.43 ▲0.0744.52 ▼2.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.14 ▼14.04
Media Library /wp-admin/upload.php3.24 ▲0.0138.29 ▲0.92

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hormozdi Cryptocurrencies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.19 ▼1.231.80 ▼0.4177.63 ▲25.24
Dashboard /wp-admin2,203 ▼05.89 ▲1.04113.41 ▼9.8944.19 ▼6.58
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0334.58 ▼1.9435.05 ▲3.21
Add New Post /wp-admin/post-new.php1,514 ▼617.51 ▼5.65702.99 ▼5.6650.83 ▼7.70
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.03101.49 ▼11.7848.51 ▼3.30

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/hormozdi-cryptocurrencies/hormozdi-cryptocurrencies.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
3 plugin tags: money, cryptocurrency, iran

hormozdi-cryptocurrencies/hormozdi-cryptocurrencies.php 92% from 13 tests

The principal PHP file in "Hormozdi Cryptocurrencies" v. 1.0.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,589 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP164001,4282,081
Markdown3860403
JSON300105

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.38
Average class complexity26.58
▷ Minimum class complexity1.00
▷ Maximum class complexity129.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods204
▷ Static methods115.39%
▷ Public methods18490.20%
▷ Protected methods00.00%
▷ Private methods209.80%
Functions10
▷ Named functions220.00%
▷ Anonymous functions880.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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