Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼140.45ms] Passed 4 tests
An overview of server-side resources used by Advanced Footnotes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 34.21 ▲10.18 |
Dashboard /wp-admin | 3.14 ▲0.08 | 44.80 ▼0.37 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 35.56 ▼6.80 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 95.34 ▼548.14 |
Media Library /wp-admin/upload.php | 3.08 ▲0.07 | 33.19 ▼6.48 |
Advanced Footnotes /wp-admin/options-general.php?page=advanced_footnotes | 3.04 | 29.11 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
afn_opts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Footnotes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲224 | 16.25 ▲0.80 | 12.13 ▲3.52 | 44.77 ▲1.10 |
Dashboard /wp-admin | 2,975 ▲41 | 6.12 ▲0.16 | 138.33 ▼7.65 | 114.37 ▲4.36 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.70 ▲0.00 | 65.74 ▼3.06 | 93.48 ▲10.57 |
Add New Post /wp-admin/post-new.php | 1,620 ▼52 | 21.56 ▲2.69 | 268.18 ▼99.77 | 111.34 ▼4.23 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 5.05 ▲0.04 | 147.02 ▼11.14 | 116.90 ▲2.23 |
Advanced Footnotes /wp-admin/options-general.php?page=advanced_footnotes | 1,171 | 2.10 | 59.30 | 85.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- afn_opts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced_footnotes
- > Notice in wp-content/plugins/advanced-footnotes/options.php+199
Undefined index: customcss
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced_footnotes
- > Notice in wp-content/plugins/advanced-footnotes/options.php+202
Undefined variable: default
- > GET request to /wp-admin/options-general.php?page=advanced_footnotes
- > Notice in wp-content/plugins/advanced-footnotes/options.php+189
Undefined index: var_footnotesymbol
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-footnotes/options-page.php
- > /wp-content/plugins/advanced-footnotes/advanced-footnotes.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-footnotes/options.php:277
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: references, articles, footnotes, academic
advanced-footnotes/advanced-footnotes.php 92% from 13 tests
The entry point to "Advanced Footnotes" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin618 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 68 | 11 | 442 |
JavaScript | 3 | 22 | 4 | 164 |
LESS | 1 | 1 | 0 | 11 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin