Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼11.61MB] [CPU: ▼2,488,790.88ms] Passed 4 tests
An overview of server-side resources used by BibSonomy/PUMA CSL - Publications & Tag Cloud Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▼47.64 | 49.64 ▼9,955,150.22 |
Dashboard /wp-admin | 3.76 ▲0.37 | 60.64 ▼6.35 |
Posts /wp-admin/edit.php | 3.81 ▲0.41 | 56.17 ▲4.36 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.44 | 94.55 ▼11.30 |
Media Library /wp-admin/upload.php | 3.69 ▲0.41 | 44.26 ▲7.22 |
Bibsonomy CSL /wp-admin/options-general.php?page=bibsonomy_csl | 3.57 | 38.04 |
Server storage [IO: ▲38.24MB] [DB: ▲0.28MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Filesystem usage must be lower than 25MB (currently using 38.24MB)
Filesystem: 3,860 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_bibsonomy_csl_styles |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
jal_db_version |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for BibSonomy/PUMA CSL - Publications & Tag Cloud Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.29 ▲0.14 | 2.12 ▲0.20 | 42.88 ▼4.85 |
Dashboard /wp-admin | 2,202 ▲25 | 5.66 ▲0.02 | 83.78 ▼20.02 | 42.82 ▲0.41 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▲0.05 | 33.60 ▼2.95 | 35.60 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6,708 ▲5,182 | 25.83 ▲2.83 | 948.82 ▲266.47 | 67.42 ▲3.37 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.24 ▲0.04 | 96.21 ▼19.76 | 41.84 ▼5.46 |
Bibsonomy CSL /wp-admin/options-general.php?page=bibsonomy_csl | 882 | 2.00 | 24.74 | 28.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.28MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'jal_uninstall' not found or invalid function name
- Zombie tables were found after uninstall: 1 table
- wp_bibsonomy_csl_styles
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- jal_db_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bibsonomy_csl
- > Notice in wp-content/plugins/bibsonomy-csl/BibsonomyOptions.php+124
Trying to access array offset on value of type bool
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bibsonomy_csl
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 14 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bibsonomy_csl
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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 items
- 291× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Seboettg\\CiteProc\\Style\\InheritableNameAttributesTrait' not found in wp-content/plugins/bibsonomy-csl/vendor/seboettg/citeproc-php/src/Root/Root.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/tests/Util/SimHashUtilsTest.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/bibsonomy-csl/vendor/guzzlehttp/psr7/src/AppendStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Seboettg\\CiteProc\\Rendering\\Rendering' not found in wp-content/plugins/bibsonomy-csl/vendor/seboettg/citeproc-php/src/Rendering/Group.php:36
- > PHP Fatal error
Uncaught Error: Class 'AcademicPuma\\RestClient\\Queries\\AbstractQuery' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/src/Queries/Post/CreatePostDocumentQuery.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/tests/Queries/Get/GetFriendsQueryTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/tests/Queries/Get/GetPostDetailsQueryTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'AcademicPuma\\RestClient\\Queries\\AbstractQuery' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/src/Queries/Delete/DeletePostDocumentQuery.php:43
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/bibsonomy-csl/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/bibsonomy-csl/vendor/academicpuma/restclient-php/tests/Queries/Get/GetProjectsQueryTest.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% 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
Attributes that require attention:
- Donate link: Invalid URI ("")
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== bibsonomy-csl ===
) - Screenshots: These screenshots require images: #1 (Rendered publication list from BibSonomy of group 'kde' and filtered by tag 'bibsonomy'), #2 ('Add BibSonomy Publications' MetaBox to integrate a publication list in a post), #3 (Decorated tag cloud)
bibsonomy-csl/BibsonomyTagCloudWidget.php 92% from 13 tests
The main PHP script in "BibSonomy/PUMA CSL - Publications & Tag Cloud Widget" version 2.2.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bibsonomy-csl.php" instead of "BibsonomyTagCloudWidget.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected976,008 lines of code in 3,319 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2,645 | 1,039 | 10,389 | 868,302 |
PHP | 478 | 7,981 | 21,246 | 52,501 |
HTML | 111 | 8,469 | 0 | 42,749 |
Markdown | 37 | 1,924 | 0 | 5,397 |
JSON | 26 | 0 | 0 | 4,852 |
JavaScript | 6 | 194 | 76 | 911 |
CSS | 5 | 118 | 67 | 460 |
Python | 1 | 50 | 21 | 372 |
SVG | 1 | 0 | 0 | 229 |
TeX | 3 | 6 | 0 | 112 |
YAML | 3 | 0 | 0 | 82 |
reStructuredText | 1 | 32 | 60 | 18 |
Ruby | 1 | 3 | 0 | 15 |
Bourne Shell | 1 | 1 | 0 | 8 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 49 | |
Traits | 18 | |
Classes | 380 | |
▷ Abstract classes | 10 | 2.63% |
▷ Concrete classes | 370 | 97.37% |
▷ Final classes | 42 | 11.35% |
Methods | 2,637 | |
▷ Static methods | 385 | 14.60% |
▷ Public methods | 2,309 | 87.56% |
▷ Protected methods | 83 | 3.15% |
▷ Private methods | 245 | 9.29% |
Functions | 294 | |
▷ Named functions | 133 | 45.24% |
▷ Anonymous functions | 161 | 54.76% |
Constants | 537 | |
▷ Global constants | 83 | 15.46% |
▷ Class constants | 454 | 84.54% |
▷ Public constants | 434 | 95.59% |
Plugin size 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
21 PNG files occupy 0.70MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/img/bg_tag_left.png | 0.97KB | 0.93KB | ▼ 3.92% |
screenshot-1.png | 66.30KB | 32.04KB | ▼ 51.67% |
img/bg_tag_right.png | 0.40KB | 0.35KB | ▼ 12.96% |
(invalid) vendor/academicpuma/restclient-php/tests/data/documents/LARGE_Vergleich_Sortierverfahren.pdf.png | 22.53KB | 0.00KB | ▼ 100.00% |
(invalid) vendor/academicpuma/restclient-php/tests/data/documents/MIDDLE_Vergleich_Sortierverfahren.pdf.png | 22.53KB | 0.00KB | ▼ 100.00% |