84% reloadly-topup-widget

Code Review | Reloadly Plugin

WordPress plugin Reloadly Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: reloadly-topup-wi...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Mar 8, 2021
  • Latest release: Mar 20, 2023
  • Number of updates: 11
  • Update frequency: every 67.9 days
  • Top authors: iseremet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,465 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.06MB] [CPU: ▼9.62ms] Passed 4 tests

A check of server-side resources used by Reloadly Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0635.12 ▼25.89
Dashboard /wp-admin3.36 ▲0.0649.72 ▲2.33
Posts /wp-admin/edit.php3.48 ▲0.1247.33 ▼1.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0694.38 ▼11.53
Media Library /wp-admin/upload.php3.29 ▲0.0633.21 ▲0.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Reloadly Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲5514.78 ▲0.531.74 ▼0.6838.21 ▼22.25
Dashboard /wp-admin2,217 ▲325.84 ▲0.94107.62 ▼1.3883.87 ▲38.04
Posts /wp-admin/edit.php2,097 ▲82.03 ▲0.0339.17 ▲3.2936.04 ▲2.00
Add New Post /wp-admin/post-new.php1,528 ▲423.28 ▲0.16712.55 ▲80.4657.39 ▲5.34
Media Library /wp-admin/upload.php1,399 ▲114.10 ▼0.1398.01 ▼7.9868.29 ▲24.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | 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
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/reloadly-topup-widget/public/partials/reloadly_widget-public-display.php
    • > /wp-content/plugins/reloadly-topup-widget/admin/partials/reloadly_widget-admin-display.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
6 plugin tags: top-up, airtime, reloadly, giftcards, mobile-topup...

reloadly-topup-widget/reloadly_widget.php 85% from 13 tests

This is the main PHP file of "Reloadly Plugin" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("reloadly-topup-widget.php" instead of "reloadly_widget.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin308 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12175537287
JavaScript275416
CSS2084
Markdown1001

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.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png146.12KB36.01KB▼ 75.36%