Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.86ms] Passed 4 tests
Analyzing server-side resources used by Sitesauce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 41.09 ▼1.06 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.09 ▼15.06 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.53 ▼2.90 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.15 ▼16.41 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.33 ▲3.08 |
Sitesauce /wp-admin/options-general.php?page=sitesauce | 3.26 | 31.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Sitesauce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.32 ▼0.27 | 1.63 ▲0.06 | 39.16 ▼2.06 |
Dashboard /wp-admin | 2,204 ▲27 | 5.53 ▼0.05 | 89.16 ▼0.58 | 40.48 ▲3.37 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.03 ▲0.08 | 39.65 ▲3.84 | 38.91 ▲3.17 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 18.39 ▲0.17 | 632.55 ▲14.60 | 65.53 ▲2.36 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.12 ▼0.09 | 98.00 ▼4.12 | 41.11 ▼6.76 |
Sitesauce /wp-admin/options-general.php?page=sitesauce | 794 | 1.99 | 25.10 | 27.94 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sitesauce/src/functions.php:64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: jamstack, vercel, zeit, sitesauce, static
sitesauce/sitesauce.php Passed 13 tests
The principal PHP file in "Sitesauce" v. 1.0.0 is loaded by WordPress automatically on each request
51 characters long description:
Keep Sitesauce in sync with your Wordpress content.
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
There were no executable files found in this plugin232 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 65 | 153 | 232 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 20 | |
▷ Static methods | 14 | 70.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 3 | 15.00% |
▷ Private methods | 1 | 5.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin