Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.01ms] Passed 4 tests
Analyzing server-side resources used by WP Company Info
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.49 ▼13.10 |
Dashboard /wp-admin | 3.45 ▲0.10 | 54.40 ▼13.91 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.83 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 89.95 ▼18.79 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.09 ▲0.55 |
Contact Information /wp-admin/options-general.php?page=contact-information | 3.73 | 39.53 |
Social Network Links /wp-admin/options-general.php?page=social-links | 3.44 | 37.72 |
Server storage [IO: ▲2.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 361 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_wpci_logo_widget |
db_upgraded |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_wpci_social_network_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Company Info
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.27 ▼0.15 | 1.61 ▼0.10 | 40.23 ▼0.62 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.03 | 85.69 ▼3.01 | 40.54 ▼4.43 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.08 | 36.48 ▼0.98 | 36.20 ▲2.51 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.30 ▲0.59 | 658.06 ▲1.70 | 52.72 ▲2.62 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.23 ▼0.04 | 100.47 ▼4.34 | 41.58 ▼5.25 |
Contact Information /wp-admin/options-general.php?page=contact-information | 721 | 1.51 | 6.60 | 22.68 |
Social Network Links /wp-admin/options-general.php?page=social-links | 1,007 | 2.09 | 26.05 | 39.83 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- db_upgraded
- widget_recent-posts
- widget_wpci_social_network_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_wpci_logo_widget
- can_compress_scripts
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=contact-information
- > Compile error in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Checkbox.php+35
Declaration of CMB2_Type_Checkbox::render() must be compatible with CMB2_Type_Text::render($args = Array)
SRP 0% 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-company-info/plugin-addons/wp-admin-instructions/view/tab-company-info.php
- 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-company-info/classes/class-wp-company-info-social-network-widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-company-info/includes/cmb2/includes/helper-functions.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/wp-company-info/includes/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-company-info ===
)
wp-company-info/wp-company-info.php 92% from 13 tests
The main PHP script in "WP Company Info" version 1.9.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
There were no executable files found in this plugin45,468 lines of code in 216 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 13,782 | 17,882 | 31,544 |
PHP | 60 | 1,969 | 4,900 | 6,350 |
CSS | 13 | 1,113 | 1,140 | 4,862 |
Sass | 13 | 241 | 25 | 1,184 |
JavaScript | 4 | 240 | 248 | 890 |
Markdown | 6 | 277 | 0 | 638 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 16.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 6 | 9.09% |
▷ Concrete classes | 60 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 427 | |
▷ Static methods | 62 | 14.52% |
▷ Public methods | 366 | 85.71% |
▷ Protected methods | 58 | 13.58% |
▷ Private methods | 3 | 0.70% |
Functions | 48 | |
▷ Named functions | 47 | 97.92% |
▷ Anonymous functions | 1 | 2.08% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
includes/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
includes/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |