90% sunset-core

Code Review | Sunset Core

WordPress plugin Sunset Core scored90%from 54 tests.

About plugin

  • Plugin page: sunset-core
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 2
  • Update frequency: every 14.0 days
  • Top authors: barb0ss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /387 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1337.65 ▼3.76
Dashboard /wp-admin3.43 ▲0.0849.99 ▼10.25
Posts /wp-admin/edit.php3.54 ▲0.1849.47 ▼1.06
Add New Post /wp-admin/post-new.php6.27 ▲0.3889.33 ▼18.78
Media Library /wp-admin/upload.php3.35 ▲0.1233.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲13413.94 ▼0.6110.63 ▲8.7340.87 ▼2.73
Dashboard /wp-admin2,220 ▲405.80 ▲0.1586.04 ▼8.7343.18 ▼7.63
Posts /wp-admin/edit.php2,124 ▲242.30 ▲0.3336.49 ▼6.3438.86 ▼1.61
Add New Post /wp-admin/post-new.php6,337 ▲4,81120.80 ▼2.40929.77 ▲233.7367.98 ▲0.71
Media Library /wp-admin/upload.php1,489 ▲954.41 ▲0.22113.28 ▲6.2151.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:
LanguageFilesBlank linesComment linesLines of code
CSS2211504,197
JSON400573
PHP255134480
PO File194112212
SVG504169
JavaScript236158154

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 code0.34
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes1100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions1463.64%
▷ Anonymous functions836.36%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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