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.02MB] [CPU: ▼4.90ms] Passed 4 tests
This is a short check of server-side resources used by Theme Check
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 39.96 ▼0.71 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.27 ▼7.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.03 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.61 ▼9.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.96 ▼2.00 |
Theme Check /wp-admin/themes.php?page=themecheck | 4.07 | 36.24 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Theme Check
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.33 ▼1.07 | 1.69 ▼0.08 | 40.31 ▼8.36 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲1.05 | 105.96 ▼9.64 | 38.68 ▼10.21 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▲0.02 | 39.21 ▼0.26 | 34.25 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.32 ▼0.01 | 639.41 ▲6.41 | 60.79 ▲8.43 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.01 | 97.44 ▼1.93 | 42.46 ▼2.22 |
Theme Check /wp-admin/themes.php?page=themecheck | 848 | 2.02 | 25.56 | 32.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 61× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-link-check.php:13
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-directories-check.php:13
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-version-php-check.php:15
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-theme-support-title-tag.php:11
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-included-zip-check.php:11
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-image-size-check.php:11
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-bad-things-check.php:15
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-gravatar-check.php:11
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-script-tag-check.php:12
- > PHP Fatal error
Uncaught Error: Interface 'themecheck' not found in wp-content/plugins/theme-check/checks/class-i18n-check.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: themes, guidelines, wordpressorg
theme-check/theme-check.php 92% from 13 tests
The principal PHP file in "Theme Check" v. 20230417... is loaded by WordPress automatically on each request
The following require your attention:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20230417...")
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
No dangerous file extensions were detected4,541 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 657 | 1,825 | 4,391 |
CSS | 1 | 0 | 0 | 83 |
Markdown | 2 | 40 | 0 | 67 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 60 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 134 | 97.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.19% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gray-grad.png | 0.21KB | 0.18KB | ▼ 11.74% |