94% ada2go-badgets

Code Review | Ada2go - Badgets

WordPress plugin Ada2go - Badgets scored 94% from 54 tests.

About plugin

  • Plugin page: ada2go-badgets
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: Jul 20, 2021
  • Latest release: Jul 20, 2021
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: ada2go (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 143 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Ada2go - Badgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.13 ▲4.85
Dashboard /wp-admin3.41 ▲0.0131.77 ▼1.71
Posts /wp-admin/edit.php3.65 ▲0.0137.08 ▼3.43
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.49 ▼1,192.72
Media Library /wp-admin/upload.php3.30 ▲0.0123.20 ▼1.93

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ada2go - Badgets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.83 ▲0.146.69 ▲0.752.18 ▼0.08
Dashboard /wp-admin2,892 ▲346.12 ▲0.03117.83 ▼23.02155.93 ▼6.59
Posts /wp-admin/edit.php2,685 ▼93.23 ▼0.0162.67 ▲0.18141.18 ▼4.32
Add New Post /wp-admin/post-new.php1,763 ▲4618.98 ▼2.37391.37 ▼53.35153.57 ▼5.00
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.02155.88 ▲8.56185.24 ▼8.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ada2go-badgets/ada2go-badgets.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt might help

ada2go-badgets/ada2go-badgets.php 92% from 13 tests

Analyzing the main PHP file in "Ada2go - Badgets" version 1.0
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 607 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin17 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2421317

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin