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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.55ms] Passed 4 tests
Analyzing server-side resources used by Sinatra Core
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.86 ▼5.20 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.72 ▲0.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.26 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.13 ▼1.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.33 ▲3.79 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 325 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sinatra Core
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.47 ▲0.09 | 1.76 ▲0.12 | 40.59 ▼8.40 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼1.07 | 104.30 ▼4.13 | 42.54 ▲2.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.00 | 36.80 ▼3.63 | 33.55 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,531 ▼11 | 23.18 ▲4.81 | 634.68 ▲28.98 | 54.78 ▲4.25 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.01 | 96.12 ▲1.82 | 42.17 ▼0.64 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sinatra-core/includes/widgets/class-sinatra-core-social-links-widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sinatra-core/includes/widgets/class-sinatra-core-posts-list-widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sinatra-core/includes/widgets/class-sinatra-core-custom-list-widget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: custom blocks, demo website, demo template, blocks, demos...
sinatra-core/sinatra-core.php 85% from 13 tests
The entry point to "Sinatra Core" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,454 lines of code in 317 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,142 | 1,622 | 3,786 |
CSS | 8 | 38 | 0 | 999 |
SVG | 288 | 0 | 0 | 298 |
PO File | 1 | 121 | 131 | 289 |
JavaScript | 3 | 36 | 42 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 9 | 47.37% |
Methods | 150 | |
▷ Static methods | 22 | 14.67% |
▷ Public methods | 131 | 87.33% |
▷ Protected methods | 1 | 0.67% |
▷ Private methods | 18 | 12.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin