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.50MB] [CPU: ▲0.95ms] Passed 4 tests
Server-side resources used by ThemeRain Core
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.19 ▲1.72 | 37.62 ▼3.23 |
Dashboard /wp-admin | 3.57 ▲0.26 | 47.90 ▲1.30 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 54.28 ▲5.45 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 85.79 ▲0.29 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 45.05 ▲9.13 |
Custom Fonts /wp-admin/themes.php?page=themerain-fonts | 3.64 | 38.00 |
Add New /wp-admin/post-new.php?post_type=project | 7.02 | 82.62 |
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=project | 3.50 | 37.52 |
All Projects /wp-admin/edit.php?post_type=project | 3.55 | 41.39 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ThemeRain Core
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 21.17 ▲6.51 | 4.25 ▲2.52 | 37.71 ▼9.13 |
Dashboard /wp-admin | 2,346 ▲172 | 10.90 ▲5.23 | 254.54 ▲157.66 | 43.09 ▲0.17 |
Posts /wp-admin/edit.php | 2,282 ▲182 | 10.70 ▲8.73 | 102.27 ▲64.45 | 35.30 ▲0.27 |
Add New Post /wp-admin/post-new.php | 6,416 ▲4,887 | 28.33 ▲4.96 | 811.98 ▲138.17 | 40.34 ▼12.47 |
Media Library /wp-admin/upload.php | 1,568 ▲165 | 12.65 ▲8.43 | 139.32 ▲41.87 | 40.27 ▼2.88 |
Custom Fonts /wp-admin/themes.php?page=themerain-fonts | 1,310 | 11.97 | 103.30 | 27.84 |
Add New /wp-admin/post-new.php?post_type=project | 1,527 | 16.94 | 780.74 | 31.91 |
Categories /wp-admin/edit-tags.php?taxonomy=project-category&post_type=project | 1,450 | 10.47 | 76.84 | 28.10 |
All Projects /wp-admin/edit.php?post_type=project | 1,256 | 10.59 | 81.17 | 27.81 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/customizer/customizer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themerain-core/includes/fonts/fonts-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/themerain-core/includes/portfolio/portfolio.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/meta-boxes/meta-boxes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/custom-css/custom-css.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themerain-core/includes/blocks/blocks.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themerain-core/includes/fonts/fonts.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: themerain
themerain-core/themerain-core.php 92% from 13 tests
The entry point to "ThemeRain Core" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,703 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 279 | 32 | 1,114 |
CSS | 7 | 79 | 20 | 363 |
JavaScript | 6 | 60 | 14 | 225 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 54 | |
▷ Static methods | 7 | 12.96% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 4 | 7.41% |
▷ Private methods | 1 | 1.85% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
No PNG images were found in this plugin