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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 36.65 ▲11.05 |
Dashboard /wp-admin | 3.10 ▲0.04 | 42.30 ▲0.30 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 38.95 ▼9.26 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 95.92 ▼673.78 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 36.26 ▲2.41 |
Reffero /wp-admin/options-general.php?page=reffero-menu | 3.01 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲89 | 16.21 ▲0.75 | 9.39 ▼2.71 | 49.70 ▼5.58 |
Dashboard /wp-admin | 2,978 ▲44 | 5.90 ▼0.05 | 137.55 ▼9.28 | 106.82 ▼5.72 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.02 | 67.38 ▲2.93 | 90.42 ▼10.64 |
Add New Post /wp-admin/post-new.php | 1,582 ▼290 | 16.61 ▼2.45 | 358.71 ▼25.08 | 118.27 ▲4.80 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.03 ▼0.00 | 137.02 ▼12.56 | 115.49 ▲4.38 |
Reffero /wp-admin/options-general.php?page=reffero-menu | 1,134 | 2.10 | 54.88 | 68.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 31 | 19 | 202 |
Markdown | 1 | 0 | 0 | 2 |
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 code | 0.63 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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