Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.14ms] Passed 4 tests
This is a short check of server-side resources used by Footnotation
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.78 ▲4.21 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.51 ▲5.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.18 ▼4.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.52 ▼27.86 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.78 ▲3.38 |
Footnotation /wp-admin/options-general.php?page=footnotation/footnotation.php | 3.23 | 30.88 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Footnotation
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.58 ▼0.80 | 9.16 ▲7.50 | 46.06 ▲5.14 |
Dashboard /wp-admin | 2,213 ▲58 | 5.84 ▲0.13 | 100.23 ▼7.66 | 38.83 ▼3.34 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.06 | 33.78 ▼5.58 | 34.86 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 18.32 ▲0.91 | 623.49 ▼19.86 | 67.26 ▲11.09 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.02 | 99.97 ▲0.24 | 41.80 ▼6.43 |
Footnotation /wp-admin/options-general.php?page=footnotation/footnotation.php | 805 | 2.18 | 23.79 | 31.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/footnotation/footnotation.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
7 plugin tags: essay, post, footnotes, editing, academic...
footnotation/footnotation.php Passed 13 tests
"Footnotation" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
A simple footnote plugin for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected229 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 32 | 167 |
CSS | 1 | 6 | 0 | 31 |
JavaScript | 1 | 3 | 0 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 2.30MB with 1.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 800.52KB | 276.80KB | ▼ 65.42% |
assets/banner-1544x500.png | 319.16KB | 90.18KB | ▼ 71.75% |
assets/screenshot-3.png | 322.46KB | 106.57KB | ▼ 66.95% |
assets/banner-772x250.png | 225.01KB | 76.17KB | ▼ 66.15% |
assets/icon-256x256.png | 18.02KB | 0.21KB | ▼ 98.84% |