Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲1.29ms] Passed 4 tests
This is a short check of server-side resources used by Codegear Starter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.50 ▼3.69 |
Dashboard /wp-admin | 3.56 ▲0.25 | 48.38 ▲0.43 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 51.01 ▲4.39 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 96.83 ▲14.64 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 38.13 ▲4.02 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Codegear Starter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲23 | 14.23 ▼0.04 | 1.80 ▼0.23 | 39.79 ▼3.77 |
Dashboard /wp-admin | 2,215 ▲38 | 5.64 ▲0.01 | 92.57 ▲6.00 | 42.28 ▲2.66 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.98 ▲0.04 | 40.71 ▼0.38 | 36.59 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.77 ▲0.61 | 611.68 ▼12.67 | 47.42 ▼0.87 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.19 ▲0.04 | 95.88 ▼1.54 | 40.77 ▼2.10 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/codegear-starter/admin/partials/codegear-starter-admin-display.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/codegear-starter/includes/class-codegear-starter-i18n.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/startupx.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/editorx.php:57
- > PHP Fatal error
Uncaught Error: Class 'WPImporterLoggerCLI' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/Logger.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/WXRImporter.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPImporterLogger' not found in wp-content/plugins/codegear-starter/import/wp-content-importer-v2/WPImporterLoggerCLI.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/knote.php:815
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/codegear-starter/includes/class-customizer-option.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codegear-starter/includes/class-import.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/codegear-starter/templates/acoustics.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
6 plugin tags: codegearthemes, import, sites, starter, elementor...
codegear-starter/codegear-starter.php Passed 13 tests
"Codegear Starter" version 1.2.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
29 characters long description:
CodeGearThemes starter sites.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected5,722 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 890 | 1,683 | 4,173 |
CSS | 2 | 170 | 20 | 1,261 |
JavaScript | 2 | 62 | 6 | 288 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 5.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 113 | |
▷ Static methods | 14 | 12.39% |
▷ Public methods | 68 | 60.18% |
▷ Protected methods | 35 | 30.97% |
▷ Private methods | 10 | 8.85% |
Functions | 21 | |
▷ Named functions | 18 | 85.71% |
▷ Anonymous functions | 3 | 14.29% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.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 files were detected