83% badge-for-voipdown

Code Review | VoIPDown Badge for Wordpress

WordPress plugin VoIPDown Badge for Wordpress scored 83% from 54 tests.

About plugin

  • Plugin page: badge-for-voipdown
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Feb 1, 2016
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: Imadarchid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.86ms] Passed 4 tests

This is a short check of server-side resources used by VoIPDown Badge for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.50 ▼4.07
Dashboard /wp-admin3.35 ▲0.0446.01 ▲0.42
Posts /wp-admin/edit.php3.46 ▲0.1148.13 ▲0.23
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.28 ▼12.01
Media Library /wp-admin/upload.php3.27 ▲0.0437.12 ▲5.35

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

VoIPDown Badge for Wordpress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲13113.54 ▼0.849.16 ▲7.0344.77 ▼3.73
Dashboard /wp-admin2,207 ▲195.80 ▼0.08103.11 ▲0.4540.61 ▲0.92
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0339.12 ▲3.6833.79 ▲2.16
Add New Post /wp-admin/post-new.php1,527 ▲1318.09 ▲0.54587.22 ▼77.3656.45 ▲4.68
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.09100.63 ▲0.4042.35 ▼3.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/badge-for-voipdown/public/partials/voip-down-maroc-public-display.php
    • > /wp-content/plugins/badge-for-voipdown/admin/partials/voip-down-maroc-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === badge-for-voipdown === )
The official readme.txt is a good inspiration

badge-for-voipdown/voip-down-maroc.php 77% from 13 tests

The main PHP file in "VoIPDown Badge for Wordpress" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 198 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("badge-for-voipdown.php" instead of "voip-down-maroc.php")

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
No dangerous file extensions were detected194 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12117521161
JavaScript342722
Markdown14011
CSS2080

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin