Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.74ms] Passed 4 tests
Server-side resources used by SiteLint
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 23.81 ▼19.04 |
Dashboard /wp-admin | 3.43 ▲0.08 | 46.74 ▼14.93 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.34 ▲3.73 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.42 ▼2.37 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.12 ▼2.63 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SiteLint
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲71 | 14.33 ▲0.07 | 1.79 ▼0.22 | 40.33 ▼3.38 |
Dashboard /wp-admin | 2,207 ▲26 | 5.63 ▲0.03 | 97.06 ▼11.23 | 43.62 ▲0.13 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.05 ▲0.10 | 39.67 ▼1.13 | 35.44 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,540 ▲11 | 23.49 ▼0.26 | 662.44 ▲17.58 | 56.44 ▼0.91 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.21 ▲0.03 | 96.87 ▼0.35 | 42.53 ▼2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sitelint/public/partials/plugin-name-public-display.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sitelint/admin/partials/sitelint-login.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sitelint/admin/partials/sitelint-footer.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sitelint/admin/partials/sitelint-admin-display.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/sitelint/admin/partials/sitelint-signup.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sitelint/admin/partials/sitelint-results.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sitelint/admin/partials/sitelint-setup.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sitelint/admin/partials/sitelint-public.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== sitelint ===
)
sitelint/sitelint.php 92% from 13 tests
The principal PHP file in "SiteLint" v. 1.4.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 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
Good job! No executable or dangerous file extensions detected16,513 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,216 | 42 | 11,304 |
JavaScript | 5 | 893 | 2,192 | 3,845 |
PHP | 20 | 285 | 505 | 1,183 |
SVG | 2 | 0 | 0 | 177 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 3 | 6.38% |
▷ Public methods | 31 | 65.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 34.04% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
3 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/avatar-grey.png | 1.05KB | 1.12KB | 0.00% |
admin/assets/images/sitelint-screenshot-rule-results.png | 61.78KB | 34.78KB | ▼ 43.70% |
admin/assets/images/sitelint-screenshot-results.png | 75.87KB | 40.94KB | ▼ 46.05% |