Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▲0.21ms] Passed 4 tests
This is a short check of server-side resources used by RaraTheme Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 50.60 ▲3.78 |
Dashboard /wp-admin | 3.63 ▲0.33 | 53.61 ▲4.34 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 55.36 ▲6.83 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 91.67 ▼4.30 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 36.93 ▼2.99 |
Add New /wp-admin/post-new.php?post_type=rara-portfolio | 6.28 | 86.84 |
All Portfolios /wp-admin/edit.php?post_type=rara-portfolio | 3.66 | 41.73 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=rara_portfolio_categories&post_type=rara-portfolio | 3.59 | 41.26 |
Server storage [IO: ▲4.13MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 30 new options
New WordPress options |
---|
widget_rrtc_icon_text_widget |
widget_rara_posts_category_slider_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_raratheme_author_bio |
widget_raratheme_custom_categories |
widget_raratheme_featured_page_widget |
widget_raratheme_advertisement_widget |
widget_raratheme_client_logo_widget |
widget_raratheme_featured_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for RaraTheme Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,075 ▲1,314 | 17.11 ▲2.47 | 43.56 ▲41.84 | 44.36 ▲3.13 |
Dashboard /wp-admin | 3,307 ▲1,127 | 5.72 ▲0.05 | 86.94 ▲1.41 | 41.38 ▼0.22 |
Posts /wp-admin/edit.php | 5,179 ▲3,079 | 7.92 ▲5.89 | 183.10 ▲143.60 | 44.33 ▲7.14 |
Add New Post /wp-admin/post-new.php | 3,512 ▲1,986 | 25.87 ▲2.81 | 769.68 ▲77.74 | 37.45 ▼22.32 |
Media Library /wp-admin/upload.php | 2,514 ▲1,120 | 4.10 ▼0.13 | 79.91 ▼23.85 | 42.05 ▼5.53 |
Add New /wp-admin/post-new.php?post_type=rara-portfolio | 8,194 | 25.53 | 987.01 | 31.67 |
All Portfolios /wp-admin/edit.php?post_type=rara-portfolio | 4,165 | 7.66 | 113.68 | 30.29 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=rara_portfolio_categories&post_type=rara-portfolio | 4,361 | 7.47 | 105.61 | 30.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 30 options in the database
- widget_raratheme_recent_post
- widget_raratheme_author_bio
- widget_rrtc_description_widget
- widget_raratheme_facebook_page_widget
- theysaidso_admin_options
- widget_rtc_contact_social_links
- widget_raratheme_companion_stat_counter_widget
- widget_raratheme_companion_faqs_widget
- widget_recent-comments
- widget_rtc_social_links
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/raratheme-companion/admin/partials/raratheme-companion-admin-display.php
- > /wp-content/plugins/raratheme-companion/public/partials/raratheme-companion-public-display.php
- 26× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-popular-post.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-facebook-page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-image.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-faqs.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-pinterest.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-stat-counter.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-testimonial.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/raratheme-companion/includes/templates/single-rara-portfolio.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/widgets/widget-contact.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/raratheme-companion/includes/class-raratheme-companion-templates.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Plugin backend) image not found
raratheme-companion/raratheme-companion.php Passed 13 tests
The main PHP file in "RaraTheme Companion" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
23 extremely useful custom widgets to create an engaging website.
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 detected15,434 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 617 | 177 | 7,007 |
PHP | 40 | 793 | 1,581 | 6,719 |
CSS | 7 | 141 | 18 | 1,700 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 29.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 6.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 2 | 1.18% |
▷ Public methods | 165 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 2.94% |
Functions | 34 | |
▷ Named functions | 33 | 97.06% |
▷ Anonymous functions | 1 | 2.94% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/chosen-sprite.png | 0.51KB | 0.88KB | 0.00% |
public/css/image/no-featured-blank-img.png | 1.39KB | 0.10KB | ▼ 92.75% |
admin/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
public/css/image/no-featured-img.png | 4.16KB | 1.39KB | ▼ 66.51% |