Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.90ms] Passed 4 tests
This is a short check of server-side resources used by Footnote Drawer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 37.39 ▼3.19 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.59 ▼3.70 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 43.34 ▼2.56 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.85 ▼14.13 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.01 ▼1.58 |
Footnote Drawer /wp-admin/options-general.php?page=footnote-drawer | 3.24 | 30.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Footnote Drawer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.72 ▼0.03 | 5.64 ▲3.91 | 36.59 ▼6.97 |
Dashboard /wp-admin | 2,202 ▲24 | 5.61 ▼0.11 | 95.98 ▼13.65 | 42.99 ▼0.03 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▲0.03 | 34.67 ▼4.15 | 35.91 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.42 ▲0.18 | 672.27 ▲22.24 | 57.18 ▲6.71 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.14 ▼0.14 | 97.56 ▼1.06 | 42.45 ▲1.50 |
Footnote Drawer /wp-admin/options-general.php?page=footnote-drawer | 793 | 2.00 | 27.06 | 27.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/footnote-drawer/footnote-drawer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/footnote-drawer/includes/options-page.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: footnote, drawer, cite, footnotes
footnote-drawer/footnote-drawer.php Passed 13 tests
"Footnote Drawer" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
29 characters long description:
View Footnotes in the drawer.
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
Everything looks great! No dangerous files found in this plugin352 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 21 | 196 |
Sass | 1 | 16 | 1 | 79 |
CSS | 1 | 6 | 1 | 76 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin