Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.44MB] [CPU: ▲7.32ms] Passed 4 tests
This is a short check of server-side resources used by Affiliate Link Manager and Link Shortener Plugin - LinkGenius
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 44.00 ▲4.71 |
Dashboard /wp-admin | 4.95 ▲1.65 | 55.85 ▲6.81 |
Posts /wp-admin/edit.php | 4.96 ▲1.60 | 59.21 ▲10.40 |
Add New Post /wp-admin/post-new.php | 7.79 ▲1.90 | 95.99 ▲7.36 |
Media Library /wp-admin/upload.php | 4.82 ▲1.59 | 43.47 ▲11.16 |
Import /wp-admin/edit.php?post_type=linkgenius_link&page=linkgenius_import | 5.10 | 45.37 |
All Links /wp-admin/edit.php?post_type=linkgenius_link | 4.89 | 49.75 |
Categories /wp-admin/edit-tags.php?taxonomy=linkgenius_category&post_type=linkgenius_link | 4.79 | 39.57 |
Add New /wp-admin/post-new.php?post_type=linkgenius_link | 5.54 | 61.55 |
Settings /wp-admin/edit.php?post_type=linkgenius_link&page=linkgenius_options_general | 5.14 | 42.62 |
Tags /wp-admin/edit-tags.php?taxonomy=linkgenius_tag&post_type=linkgenius_link | 4.79 | 42.42 |
Server storage [IO: ▲3.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 410 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Affiliate Link Manager and Link Shortener Plugin - LinkGenius
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲108 | 14.35 ▼0.21 | 1.75 ▲0.02 | 41.96 ▼4.14 |
Dashboard /wp-admin | 2,275 ▲98 | 5.71 ▲0.18 | 87.37 ▼15.49 | 39.98 ▼2.56 |
Posts /wp-admin/edit.php | 2,181 ▲78 | 2.09 ▲0.08 | 42.26 ▲6.80 | 35.20 ▼0.15 |
Add New Post /wp-admin/post-new.php | 6,414 ▲4,888 | 28.16 ▲4.62 | 879.99 ▲260.06 | 36.73 ▼10.56 |
Media Library /wp-admin/upload.php | 1,477 ▲74 | 4.38 ▲0.26 | 101.50 ▼4.84 | 41.77 ▼1.36 |
Import /wp-admin/edit.php?post_type=linkgenius_link&page=linkgenius_import | 951 | 2.16 | 31.00 | 32.62 |
All Links /wp-admin/edit.php?post_type=linkgenius_link | 1,168 | 2.00 | 37.67 | 31.62 |
Categories /wp-admin/edit-tags.php?taxonomy=linkgenius_category&post_type=linkgenius_link | 1,364 | 2.24 | 30.07 | 26.71 |
Add New /wp-admin/post-new.php?post_type=linkgenius_link | 2,874 | 4.14 | 89.79 | 37.45 |
Settings /wp-admin/edit.php?post_type=linkgenius_link&page=linkgenius_options_general | 1,041 | 1.82 | 31.89 | 27.86 |
Tags /wp-admin/edit-tags.php?taxonomy=linkgenius_tag&post_type=linkgenius_link | 1,333 | 2.24 | 32.95 | 34.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 44× 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 LinkGenius\\__() in wp-content/plugins/linkgenius/includes/Settings.php:203
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/types/CMB2_Type_Radio.php:13
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/linkgenius/vendor/jcchavezs/cmb2-conditionals/example-functions.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkgenius/vendor/jcchavezs/cmb2-conditionals/example-functions.php:28
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Time.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/linkgenius/vendor/cmb2/cmb2/includes/CMB2_Field.php:17
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 50 tag instead of maximum 10
linkgenius/linkgenius.php 92% from 13 tests
Analyzing the main PHP file in "Affiliate Link Manager and Link Shortener Plugin - LinkGenius" version 1.1.3
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)
Code Analysis Passed 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 detected58,102 lines of code in 255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,461 | 18,698 | 32,631 |
PHP | 81 | 2,565 | 7,080 | 10,125 |
JSON | 4 | 0 | 0 | 6,748 |
CSS | 15 | 265 | 1,192 | 4,649 |
JavaScript | 10 | 412 | 641 | 1,666 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 5 | 274 | 0 | 831 |
YAML | 1 | 9 | 51 | 33 |
XML | 1 | 4 | 2 | 8 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 9 | 10.84% |
▷ Concrete classes | 74 | 89.16% |
▷ Final classes | 0 | 0.00% |
Methods | 656 | |
▷ Static methods | 114 | 17.38% |
▷ Public methods | 552 | 84.15% |
▷ Protected methods | 92 | 14.02% |
▷ Private methods | 12 | 1.83% |
Functions | 51 | |
▷ Named functions | 40 | 78.43% |
▷ Anonymous functions | 11 | 21.57% |
Constants | 20 | |
▷ Global constants | 12 | 60.00% |
▷ Class constants | 8 | 40.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/cmb2/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
vendor/cmb2/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |