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.07MB] [CPU: ▲0.35ms] Passed 4 tests
A check of server-side resources used by Webriti Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.61 ▲4.20 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.72 ▲0.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.68 ▲0.08 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.93 ▼2.51 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.47 ▲2.91 |
Server storage [IO: ▲15.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 386 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Webriti Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.74 ▲0.09 | 1.76 ▼0.05 | 44.75 ▲0.78 |
Dashboard /wp-admin | 2,198 ▲24 | 5.51 ▼0.01 | 87.39 ▲1.81 | 42.02 ▼0.42 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.03 | 34.82 ▼6.91 | 34.23 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.69 ▲5.31 | 602.22 ▼23.91 | 41.44 ▼35.13 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.28 ▲0.09 | 94.87 ▼3.41 | 41.83 ▼1.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 74× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/rambo/customizer.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/spasalon/features/feature-project-section.php:339
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webriti-companion/inc/busiprof/sections/busiprof-cta-section.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/elitepress/features/feature-homecallout-section.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/webriti-companion/inc/spasalon/sections/spasalon-portfolio-section.php:167
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/wallstreet/features/feature-slider-section.php:195
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/webriti-companion/inc/spasalon/features/feature-service-section.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/wallstreet/features/feature-service-section.php:274
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/webriti-companion/inc/appointment/webriti-starter-sites/demo-content/setup.php:130
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webriti-companion/inc/busiprof/features/feature-slider-section.php:191
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
webriti-companion/webriti-companion.php Passed 13 tests
The principal PHP file in "Webriti Companion" v. 1.9.3 is loaded by WordPress automatically on each request
49 characters long description:
Enhances Webriti themes with extra functionality.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected56,076 lines of code in 235 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 195 | 9,976 | 18,075 | 46,107 |
JavaScript | 11 | 336 | 313 | 3,621 |
CSS | 26 | 252 | 108 | 3,436 |
SVG | 1 | 0 | 0 | 2,671 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 72.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 2 | 3.12% |
▷ Concrete classes | 62 | 96.88% |
▷ Final classes | 0 | 0.00% |
Methods | 1,316 | |
▷ Static methods | 201 | 15.27% |
▷ Public methods | 919 | 69.83% |
▷ Protected methods | 17 | 1.29% |
▷ Private methods | 380 | 28.88% |
Functions | 277 | |
▷ Named functions | 277 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
52 PNG files occupy 1.74MB with 0.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/busiprof.png | 2.93KB | 2.93KB | 0.00% |
inc/wallstreet/images/service/leo-service-slide.png | 19.21KB | 8.29KB | ▼ 56.83% |
inc/wallstreet/images/service/leo-service-default.png | 25.58KB | 10.46KB | ▼ 59.08% |
inc/wallstreet/images/portfolio/portfolio3.png | 77.13KB | 83.42KB | 0.00% |
inc/appointment/images/shk-service-hover.png | 18.42KB | 8.30KB | ▼ 54.97% |