Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.52MB] [CPU: ▼13.78ms] Passed 4 tests
A check of server-side resources used by WP Contacts Slim
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.92 ▲2.31 |
Dashboard /wp-admin | 3.47 ▲0.16 | 56.72 ▲1.82 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.35 ▲2.29 |
Add New Post /wp-admin/post-new.php | 3.36 ▼2.52 | 43.54 ▼61.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.38 ▲4.19 |
Server storage [IO: ▲7.13MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 564 new files
Database: 6 new tables, 9 new options
New tables |
---|
wp_shwcp_sort |
wp_shwcp_notes |
wp_shwcp_leads |
wp_shwcp_sst |
wp_shwcp_events |
wp_shwcp_log |
New WordPress options |
---|
widget_recent-posts |
shwcp_main_settings |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
shwcp_db_ver |
widget_recent-comments |
shwcp_permissions |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Contacts Slim
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.28 ▼1.37 | 4.47 ▲2.85 | 43.11 ▼0.02 |
Dashboard /wp-admin | 2,205 ▲16 | 4.92 ▼0.01 | 104.05 ▼17.52 | 70.39 ▲32.08 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 1.98 ▼0.08 | 38.23 ▼2.64 | 35.07 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 23.44 ▲0.33 | 620.08 ▼55.74 | 34.24 ▼16.58 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.26 ▲0.02 | 103.26 ▼7.81 | 81.63 ▲35.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wp-contacts-slim/uninstall.php+8
Constant SHWCP_ROOT_FILE already defined
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | 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
- 107× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Settings' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/Writer/PDF/mPDF.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/CachedObjectStorage/DiscISAM.php:36
- > PHP Fatal error
Uncaught Error: Interface 'PHPExcel_IComparable' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/Worksheet.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_HTML' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/Writer/PDF/Core.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php:36
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-contacts-slim/shwcp-slim.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/wp-contacts-slim/includes/PHPExcel/Classes/PHPExcel/CachedObjectStorage/Memory.php:36
- > PHP Fatal error
Uncaught Error: Class 'main_wcp' not found in wp-content/plugins/wp-contacts-slim/includes/class-wcp-manage-perms.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-contacts-slim/includes/class-wcp-api-tabs.php:1566
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: student database, personal database, leads database, leads, contacts...
wp-contacts-slim/shwcp-slim.php 77% from 13 tests
"WP Contacts Slim" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-contacts-slim.php" instead of "shwcp-slim.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected84,574 lines of code in 314 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 12,799 | 36,842 | 60,710 |
CSS | 16 | 717 | 172 | 8,674 |
JavaScript | 20 | 1,233 | 1,425 | 6,542 |
JSON | 5 | 0 | 0 | 2,651 |
Sass | 26 | 17 | 23 | 2,392 |
LESS | 26 | 16 | 30 | 2,379 |
SVG | 3 | 0 | 0 | 898 |
Markdown | 1 | 97 | 0 | 328 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,176)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 56.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,176.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 202 | |
▷ Abstract classes | 6 | 2.97% |
▷ Concrete classes | 196 | 97.03% |
▷ Final classes | 0 | 0.00% |
Methods | 2,842 | |
▷ Static methods | 620 | 21.82% |
▷ Public methods | 2,335 | 82.16% |
▷ Protected methods | 32 | 1.13% |
▷ Private methods | 475 | 16.71% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 825 | |
▷ Global constants | 144 | 17.45% |
▷ Class constants | 681 | 82.55% |
▷ Public constants | 681 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
181 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/filetypes/app.png | 0.76KB | 0.37KB | ▼ 50.65% |
assets/img/filetypes/ra.png | 0.71KB | 0.35KB | ▼ 50.76% |
assets/img/filetypes/wsf.png | 0.80KB | 0.38KB | ▼ 52.01% |
assets/img/filetypes/eps.png | 0.73KB | 0.36KB | ▼ 50.13% |
assets/img/filetypes/gzip.png | 0.76KB | 0.38KB | ▼ 50.77% |