Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/jreferences/class.jref-citation.php+189
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.32MB] [CPU: ▼11.28ms] Passed 4 tests
A check of server-side resources used by JReferences
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.03 | 50.76 ▲0.14 |
Dashboard /wp-admin | 3.32 ▲0.02 | 57.96 ▲3.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 52.50 ▼3.10 |
Add New Post /wp-admin/post-new.php | 4.61 ▼1.27 | 48.94 ▼42.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.91 ▲0.68 |
JREF References /wp-admin/options-general.php?page=jref-setting-admin | 3.21 | 33.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
jref_option_name |
Browser metrics Passed 4 tests
A check of browser resources used by JReferences
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲17 | 13.32 ▼1.46 | 5.69 ▲3.71 | 48.35 ▲7.45 |
Dashboard /wp-admin | 2,210 ▲7 | 4.87 ▼1.02 | 112.98 ▲9.56 | 49.44 ▲7.33 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.99 ▼0.06 | 36.54 ▼2.65 | 32.55 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.74 ▼0.22 | 661.23 ▲3.43 | 56.97 ▼10.46 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▲0.01 | 96.03 ▼4.84 | 44.08 ▲2.09 |
JREF References /wp-admin/options-general.php?page=jref-setting-admin | 811 | 2.17 | 25.85 | 37.93 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- jref_option_name
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/jreferences/class.jref-reference.php
- > /wp-content/plugins/jreferences/jref.php
- > /wp-content/plugins/jreferences/class.jref-citation.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/jreferences/class.jref-admin.php:158
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== jreferences ===
)
jreferences/jref.php 92% from 13 tests
The principal PHP file in "JReferences" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("jreferences.php" instead of "jref.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin394 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 122 | 183 | 331 |
PO File | 1 | 13 | 17 | 42 |
CSS | 1 | 7 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 7.45KB | 5.12KB | ▼ 31.28% |