Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼2.19ms] Passed 4 tests
This is a short check of server-side resources used by Ridhi Companion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 37.94 ▼2.85 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.81 ▼5.51 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 47.14 ▲1.94 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 82.26 ▼1.55 |
Media Library /wp-admin/upload.php | 3.58 ▲0.36 | 36.21 ▲1.15 |
Server storage [IO: ▲2.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ridhi Companion: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.08 | 1.85 ▼0.21 | 42.30 ▼2.19 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.05 | 85.43 ▼13.01 | 40.52 ▼1.76 |
Posts /wp-admin/edit.php | 2,103 ▲24 | 1.99 ▲0.00 | 38.93 ▲3.57 | 36.87 ▲5.69 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.99 ▲0.03 | 576.66 ▼40.35 | 53.86 ▼0.64 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▲0.07 | 96.95 ▼13.66 | 41.70 ▼5.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ridhi-companion/inc/class-ridhi-companion.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'Ridhi_Companion_Dummy_Array' not found in wp-content/plugins/ridhi-companion/sections/team.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ridhi_Companion_Dummy_Array' not found in wp-content/plugins/ridhi-companion/sections/about.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/ridhi-companion/inc/class-ridhi-companion.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ridhi-companion/sections/social.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ridhi_Companion_Dummy_Array' not found in wp-content/plugins/ridhi-companion/sections/client.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/ridhi-companion/sections/contact.php:8
- > PHP Fatal error
Uncaught Error: Class 'Ridhi_Companion_Dummy_Array' not found in wp-content/plugins/ridhi-companion/sections/testimonial.php:8
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/ridhi-companion/inc/class-ridhi-companion.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'Ridhi_Companion_Dummy_Array' not found in wp-content/plugins/ridhi-companion/inc/customizer/class-ridhi-companion-customizer.php:12
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: ridhi-companion, companion, companion-plugin
ridhi-companion/ridhi-companion.php 92% from 13 tests
"Ridhi Companion" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "5.2.3")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,130 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 332 | 397 | 3,819 |
JavaScript | 6 | 653 | 1,012 | 3,071 |
CSS | 3 | 35 | 2 | 240 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 9.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 23 | 41.07% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 3 | 5.36% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/algolia.png | 3.78KB | 2.44KB | ▼ 35.49% |
images/akamai.png | 5.25KB | 3.06KB | ▼ 41.68% |
images/amazon-web-services.png | 6.68KB | 3.49KB | ▼ 47.81% |
images/android.png | 3.18KB | 2.09KB | ▼ 34.41% |
images/behance.png | 3.44KB | 2.25KB | ▼ 34.54% |