Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/cinda-citizen-science/library/APP/CindaApp.php+36
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.99MB] [CPU: ▼37.84ms] Passed 4 tests
This is a short check of server-side resources used by CINDA: Volunteers Networks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.98 ▼0.48 | 19.89 ▼22.83 |
Dashboard /wp-admin | 3.03 ▼0.31 | 29.63 ▼31.16 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 34.44 ▼14.15 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 26.00 ▼83.22 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 29.64 ▼8.08 |
Tracking /wp-admin/admin.php?page=cinda_tracking | 3.03 | 26.15 |
CSV Export /wp-admin/admin.php?page=export | 3.03 | 24.86 |
Contributions /wp-admin/edit.php?post_type=cinda_contribution | 3.03 | 28.87 |
Configuration /wp-admin/admin.php?page=cinda_options | 3.03 | 24.24 |
Dictionaries /wp-admin/edit.php?post_type=cinda_dictionary | 3.03 | 27.27 |
About CINDA /wp-admin/admin.php?page=cinda_about | 3.03 | 27.85 |
Volunteers /wp-admin/edit.php?post_type=cinda_volunteer | 3.03 | 31.87 |
Campaigns /wp-admin/edit.php?post_type=cinda_campaign | 3.03 | 26.41 |
Notifications /wp-admin/admin.php?page=push | 3.03 | 26.85 |
Server storage [IO: ▲5.74MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 202 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_cinda_trackings |
wp_cinda_suscriptions |
wp_cinda_model_fields |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
cinda_options |
widget_recent-comments |
Browser metrics Passed 4 tests
CINDA: Volunteers Networks: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲285 | 15.03 ▲0.65 | 1.68 ▼0.32 | 41.90 ▲1.68 |
Dashboard /wp-admin | 2,426 ▲220 | 6.86 ▲1.78 | 131.07 ▲29.57 | 102.87 ▲60.65 |
Posts /wp-admin/edit.php | 2,346 ▲246 | 3.75 ▲1.71 | 49.94 ▲12.99 | 83.34 ▲49.31 |
Add New Post /wp-admin/post-new.php | 1,753 ▲227 | 21.85 ▲4.27 | 675.87 ▲9.16 | 36.75 ▼18.14 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 4.59 ▲0.29 | 87.70 ▼15.72 | 97.07 ▲51.36 |
Tracking /wp-admin/admin.php?page=cinda_tracking | 1,027 | 3.45 | 47.12 | 66.55 |
CSV Export /wp-admin/admin.php?page=export | 1,247 | 3.48 | 49.42 | 79.35 |
Contributions /wp-admin/edit.php?post_type=cinda_contribution | 1,326 | 3.80 | 52.16 | 66.09 |
Configuration /wp-admin/admin.php?page=cinda_options | 1,218 | 3.41 | 42.02 | 71.22 |
Dictionaries /wp-admin/edit.php?post_type=cinda_dictionary | 1,315 | 3.69 | 49.73 | 67.77 |
About CINDA /wp-admin/admin.php?page=cinda_about | 1,422 | 3.45 | 41.07 | 89.57 |
Volunteers /wp-admin/edit.php?post_type=cinda_volunteer | 1,306 | 3.80 | 49.84 | 62.97 |
Campaigns /wp-admin/edit.php?post_type=cinda_campaign | 1,321 | 3.70 | 49.05 | 83.42 |
Notifications /wp-admin/admin.php?page=push | 1,686 | 7.08 | 135.70 | 118.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-rewrite.php+1036
A non-numeric value encountered
- Zombie tables detected upon uninstall: 3 tables
- wp_cinda_suscriptions
- wp_cinda_model_fields
- wp_cinda_trackings
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- cinda_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 117 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=push
- > Warning in wp-includes/class-wp-rewrite.php+1038
A non-numeric value encountered
- > GET request to /wp-admin/admin.php?page=cinda_tracking
- > Notice in wp-content/plugins/cinda-citizen-science/library/Cinda.php+419
Undefined index: id
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cinda_options
- > Notice in wp-content/plugins/cinda-citizen-science/assets/views/cinda/page_options.php+53
Trying to access array offset on value of type bool
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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/cinda-citizen-science/templates/app/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/cinda-citizen-science/library/global.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/cinda-citizen-science/templates/app/footer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cinda-citizen-science/library/CPT/functions.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cinda-citizen-science/library/APP/functions.php:48
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== cinda-citizen-science ===
)
cinda-citizen-science/init.php 85% from 13 tests
The primary PHP file in "CINDA: Volunteers Networks" version 1.4.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cinda-citizen-science.php" instead of "init.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin43,092 lines of code in 159 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 57 | 4,503 | 7,256 | 16,932 |
CSS | 16 | 1,522 | 766 | 15,833 |
PHP | 55 | 1,560 | 1,267 | 5,657 |
Sass | 16 | 89 | 27 | 1,950 |
LESS | 13 | 28 | 34 | 1,550 |
SVG | 1 | 0 | 0 | 655 |
PO File | 1 | 226 | 276 | 515 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 28.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 215 | |
▷ Static methods | 53 | 24.65% |
▷ Public methods | 205 | 95.35% |
▷ Protected methods | 4 | 1.86% |
▷ Private methods | 6 | 2.79% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 1.46MB with 0.91MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo_ugr.png | 15.20KB | 6.02KB | ▼ 60.40% |
assets/images/logo_osl.png | 10.42KB | 4.29KB | ▼ 58.82% |
assets/images/logo_cinda.png | 55.63KB | 3.45KB | ▼ 93.79% |
assets/images/button-settings.png | 0.98KB | 0.67KB | ▼ 30.83% |
assets/images/mockup_watchface_01.png | 75.33KB | 24.12KB | ▼ 67.98% |