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.13MB] [CPU: ▼9.53ms] Passed 4 tests
Analyzing server-side resources used by Sunset Core
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 37.65 ▼3.76 |
Dashboard /wp-admin | 3.43 ▲0.08 | 49.99 ▼10.25 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 49.47 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 89.33 ▼18.78 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.24 ▼5.32 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sunset Core
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲134 | 13.94 ▼0.61 | 10.63 ▲8.73 | 40.87 ▼2.73 |
Dashboard /wp-admin | 2,220 ▲40 | 5.80 ▲0.15 | 86.04 ▼8.73 | 43.18 ▼7.63 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.30 ▲0.33 | 36.49 ▼6.34 | 38.86 ▼1.61 |
Add New Post /wp-admin/post-new.php | 6,337 ▲4,811 | 20.80 ▼2.40 | 929.77 ▲233.73 | 67.98 ▲0.71 |
Media Library /wp-admin/upload.php | 1,489 ▲95 | 4.41 ▲0.22 | 113.28 ▲6.21 | 51.10 ▲4.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
1 plugin tags: sunset
sunset-core/sunset-core.php Passed 13 tests
The main PHP file in "Sunset Core" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
This plugin was made for the Sunset Theme and adds extra functionality to it.
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
No dangerous file extensions were detected5,785 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 211 | 50 | 4,197 |
JSON | 4 | 0 | 0 | 573 |
PHP | 2 | 55 | 134 | 480 |
PO File | 1 | 94 | 112 | 212 |
SVG | 5 | 0 | 4 | 169 |
JavaScript | 2 | 36 | 158 | 154 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 6.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 1 | 100.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 14 | 63.64% |
▷ Anonymous functions | 8 | 36.36% |
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
There were not PNG files found in your plugin