94% reffero-campaign

Code Review | Reffero

WordPress plugin Reffero scored 94% from 54 tests.

About plugin

  • Plugin page: reffero-campaign
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Jun 18, 2015
  • Latest release: Jun 19, 2015
  • Number of updates: 2
  • Update frequency: every 18.5 days
  • Top authors: Sakura (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 420 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼170.08ms] Passed 4 tests

This is a short check of server-side resources used by Reffero
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.65 ▲11.05
Dashboard /wp-admin3.10 ▲0.0442.30 ▲0.30
Posts /wp-admin/edit.php3.15 ▲0.0438.95 ▼9.26
Add New Post /wp-admin/post-new.php5.47 ▲0.0395.92 ▼673.78
Media Library /wp-admin/upload.php3.04 ▲0.0436.26 ▲2.41
Reffero /wp-admin/options-general.php?page=reffero-menu3.0129.91

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reffero
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8916.21 ▲0.759.39 ▼2.7149.70 ▼5.58
Dashboard /wp-admin2,978 ▲445.90 ▼0.05137.55 ▼9.28106.82 ▼5.72
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0267.38 ▲2.9390.42 ▼10.64
Add New Post /wp-admin/post-new.php1,582 ▼29016.61 ▼2.45358.71 ▼25.08118.27 ▲4.80
Media Library /wp-admin/upload.php1,815 ▲55.03 ▼0.00137.02 ▼12.56115.49 ▲4.38
Reffero /wp-admin/options-general.php?page=reffero-menu1,1342.1054.8868.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/reffero-campaign/reffero.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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: facebook, redirect, social, twitter, social networks

reffero-campaign/reffero.php 92% from 13 tests

The entry point to "Reffero" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("reffero-campaign.php" instead of "reffero.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin204 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13119202
Markdown1002

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.63
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin