Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/zotero-notes/class.zotero-notes-referencesList.php+200
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.01ms] Passed 4 tests
This is a short check of server-side resources used by Zotero Notes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.28 ▼1.73 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.87 ▲0.47 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.57 ▲4.85 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 84.70 ▼11.00 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.53 ▲4.21 |
Zotero Notes /wp-admin/options-general.php?page=ZoteroNotes-setting-admin | 3.29 | 29.39 |
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: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
zotero_notes_option_name |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Zotero Notes: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.29 ▼1.27 | 4.42 ▲2.77 | 43.54 ▲0.57 |
Dashboard /wp-admin | 2,210 ▲25 | 5.90 ▲1.04 | 108.64 ▲3.92 | 42.18 ▲0.73 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.02 | 38.68 ▼1.18 | 34.82 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.56 ▲0.18 | 652.05 ▼5.19 | 40.31 ▼17.64 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.02 | 98.23 ▼1.89 | 40.93 ▼1.44 |
Zotero Notes /wp-admin/options-general.php?page=ZoteroNotes-setting-admin | 823 | 2.06 | 23.26 | 26.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- zotero_notes_option_name
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% 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 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/zotero-notes/class.zotero-notes-referencesList.php
- > /wp-content/plugins/zotero-notes/class.zotero-notes-citation.php
- > /wp-content/plugins/zotero-notes/zotero-notes.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/zotero-notes/class.zotero-notes-admin.php:200
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: reference, footnotes, citation, zotero, comments
zotero-notes/zotero-notes.php Passed 13 tests
This is the main PHP file of "Zotero Notes" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Simple footnote references using Zotero
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
Good job! No executable or dangerous file extensions detected559 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 204 | 294 | 473 |
PO File | 1 | 19 | 23 | 54 |
CSS | 1 | 8 | 0 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 1 | 2.70% |
▷ Public methods | 34 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.11% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
No PNG files were detected