Benchmarks
Plugin footprint 83% from 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.25ms] Passed 4 tests
An overview of server-side resources used by My Marginalia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.79 ▼2.72 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.25 ▼10.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.52 ▲0.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.10 ▼1.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.94 ▼1.76 |
Marginalia /wp-admin/options-general.php?page=marginalia_options | 3.22 | 31.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by My Marginalia
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.25 ▼1.13 | 1.61 ▼0.48 | 39.61 ▼11.23 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▼0.05 | 103.13 ▼7.05 | 40.18 ▼4.54 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.00 | 39.99 ▲3.43 | 35.86 ▲2.34 |
Add New Post /wp-admin/post-new.php | 6,269 ▲4,736 | 22.71 ▼0.65 | 936.78 ▲267.45 | 84.80 ▲27.17 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.26 ▲0.11 | 111.29 ▲12.73 | 48.01 ▲4.57 |
Marginalia /wp-admin/options-general.php?page=marginalia_options | 874 | 1.99 | 24.55 | 24.63 |
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
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 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
7 plugin tags: annotation, block, formatting, show notes, timestamp...
my-marginalia/plugin.php 85% from 13 tests
Analyzing the main PHP file in "My Marginalia" version 1.0.6
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 387 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("my-marginalia.php" instead of "plugin.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
Success! There were no dangerous files found in this plugin251 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 13 | 35 | 114 |
PHP | 2 | 11 | 45 | 70 |
Sass | 3 | 3 | 1 | 47 |
CSS | 5 | 5 | 17 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin