Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.00ms] Passed 4 tests
An overview of server-side resources used by RefGenerator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.41 | 5.20 ▼39.37 |
Dashboard /wp-admin | 2.12 ▼1.23 | 6.88 ▼45.75 |
Posts /wp-admin/edit.php | 2.12 ▼1.28 | 5.87 ▼42.33 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.81 | 6.19 ▼88.54 |
Media Library /wp-admin/upload.php | 2.12 ▼1.15 | 6.11 ▼30.20 |
RefGenerator /wp-admin/options-general.php?page=refgenerator/options-refgenerator.php | 2.12 | 8.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 13 new options
New WordPress options |
---|
refgen_display_settings |
refgen_display_title |
refgen_method |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
refgen_post_parent_id |
refgen_post_links_class |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for RefGenerator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.27 ▲0.13 | 1.67 ▼0.59 | 44.08 ▼3.19 |
Dashboard /wp-admin | 2,204 ▲27 | 5.64 ▲0.12 | 92.57 ▼12.96 | 40.39 ▼5.75 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.06 ▲0.09 | 36.56 ▼1.28 | 31.62 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.08 ▼0.04 | 678.01 ▲21.57 | 58.93 ▲5.52 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▼0.07 | 107.96 ▲6.67 | 48.96 ▲7.21 |
RefGenerator /wp-admin/options-general.php?page=refgenerator/options-refgenerator.php | 1,114 | 2.06 | 28.06 | 44.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Zombie WordPress options detected upon uninstall: 13 options
- refgen_display_title
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- refgen_post_content_tag
- widget_recent-comments
- refgen_post_parent_id
- refgen_display_settings
- refgen_post_links_class
- refgen_method
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=refgenerator/options-refgenerator.php
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=refgenerator/options-refgenerator.php
- > Notice in wp-content/plugins/refgenerator/options-refgenerator.php+47
Undefined index: stage
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/refgenerator/refgenerator.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/refgenerator/options-refgenerator.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: links, posts, plugin
refgenerator/refgenerator.php 92% from 13 tests
This is the main PHP file of "RefGenerator" version 2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 272 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected445 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 16 | 30 | 268 |
PO File | 1 | 44 | 44 | 101 |
JavaScript | 2 | 0 | 0 | 43 |
CSS | 2 | 2 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin