Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.04MB] [CPU: ▼8.23ms] Passed 4 tests
A check of server-side resources used by Resourcify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 23.97 ▼20.52 |
Dashboard /wp-admin | 3.41 ▲0.11 | 51.55 ▲0.15 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 53.54 ▼1.72 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.10 ▼10.84 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.30 ▲1.25 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Resourcify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲109 | 13.52 ▼0.82 | 10.15 ▲7.81 | 41.28 ▼4.99 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.06 | 87.09 ▼2.30 | 41.69 ▼0.75 |
Posts /wp-admin/edit.php | 2,100 ▼5 | 1.96 ▼0.04 | 35.72 ▼6.42 | 34.56 ▼0.70 |
Add New Post /wp-admin/post-new.php | 6,699 ▲5,173 | 19.26 ▼3.57 | 931.19 ▲265.63 | 58.42 ▲4.76 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.02 | 96.07 ▼12.35 | 44.88 ▼3.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/resourcify/includes/field-dropdown.php
- > /wp-content/plugins/resourcify/includes/field-template_vars.php
- > /wp-content/plugins/resourcify/includes/field-textfield.php
- > /wp-content/plugins/resourcify/includes/field-codeeditor.php
- > /wp-content/plugins/resourcify/includes/field-resourcify_about.php
- 35× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resourcify/includes/settings-resourcify_output.php:2
- > PHP Notice
Undefined variable: id in wp-content/plugins/resourcify/includes/field-textfield.php on line 1
- > PHP Notice
Undefined variable: settings in wp-content/plugins/resourcify/includes/field-codeeditor.php on line 3
- > PHP Notice
Undefined variable: name in wp-content/plugins/resourcify/includes/field-dropdown.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resourcify/includes/settings-template_footer.php:2
- > PHP Notice
Undefined variable: id in wp-content/plugins/resourcify/includes/field-dropdown.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/resourcify/configs/resourcify_sources-about.php:15
- > PHP Notice
Undefined variable: settings in wp-content/plugins/resourcify/includes/field-dropdown.php on line 21
- > PHP Notice
Undefined variable: value in wp-content/plugins/resourcify/includes/field-dropdown.php on line 21
- > PHP Notice
Undefined variable: id in wp-content/plugins/resourcify/includes/field-codeeditor.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
resourcify/plugincore.php 92% from 13 tests
The primary PHP file in "Resourcify" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("resourcify.php" instead of "plugincore.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
Good job! No executable or dangerous file extensions detected7,679 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 379 | 39 | 6,123 |
PHP | 18 | 167 | 346 | 785 |
CSS | 4 | 51 | 29 | 741 |
PO File | 1 | 0 | 0 | 15 |
Markdown | 1 | 12 | 0 | 14 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 105.00 |
▷ Minimum class complexity | 105.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 8 | 33.33% |
▷ Public methods | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/white.png | 3.81KB | 0.11KB | ▼ 97.05% |
assets/images/icon.png | 3.81KB | 0.11KB | ▼ 97.05% |