Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/af-tell-a-friend/af-tell-friend.php+38
Use of undefined constant ‘af_tf_uninstall’ - assumed '‘af_tf_uninstall’' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.03MB] [CPU: ▼132.85ms] Passed 4 tests
A check of server-side resources used by AF Tell a Friend
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.89 ▲16.27 |
Dashboard /wp-admin | 3.09 ▲0.04 | 41.90 ▼4.53 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 71.33 ▲26.90 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 109.71 ▼542.49 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.18 ▼0.64 |
AF Tell a Friend /wp-admin/options-general.php?page=af-tell-a-friend/af-tell-friend.php | 2.98 | 30.92 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
af_tf_plugin_options |
Browser metrics Passed 4 tests
A check of browser resources used by AF Tell a Friend
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲114 | 15.91 ▼0.07 | 7.94 ▼0.56 | 49.31 ▲0.46 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.30 | 147.24 ▼7.40 | 120.40 ▲4.75 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.02 | 80.77 ▲9.56 | 96.13 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,501 ▼182 | 18.82 ▲0.14 | 391.36 ▲22.34 | 109.27 ▼22.47 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 154.81 ▼11.87 | 126.89 ▲8.38 |
AF Tell a Friend /wp-admin/options-general.php?page=af-tell-a-friend/af-tell-friend.php | 1,093 | 2.09 | 58.81 | 78.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+303
call_user_func_array() expects parameter 1 to be a valid callback, function '‘af_tf_uninstall’' not found or invalid function name
- This plugin did not uninstall successfully, leaving 1 option in the database
- af_tf_plugin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=af-tell-a-friend/af-tell-friend.php
- > Notice in wp-content/plugins/af-tell-a-friend/af-tell-friend.php+73
Undefined index: af_tf_admin_setting
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/af-tell-a-friend/af-tf-window.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/af-tell-a-friend/af-tell-friend.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: tell a friend, email a friend, email form, refer a friend, tell a friend widget...
af-tell-a-friend/af-tell-friend.php 85% from 13 tests
The primary PHP file in "AF Tell a Friend" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("af-tell-a-friend.php" instead of "af-tell-friend.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 364 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin331 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 102 | 30 | 274 |
JavaScript | 1 | 9 | 0 | 35 |
CSS | 1 | 4 | 1 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 0 | |
▷ Global constants | 0 | 0.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