Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.56ms] Passed 4 tests
This is a short check of server-side resources used by Chiron
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.04 ▲0.26 |
Dashboard /wp-admin | 3.48 ▲0.17 | 47.53 ▼2.08 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 51.11 ▲2.59 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 85.73 ▼14.99 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 36.02 ▲3.03 |
Edit Source /wp-admin/admin.php?page=chiron_edit_source | 3.30 | 33.26 |
Manage Subscription /wp-admin/admin.php?page=chiron_manage_subscription | 3.30 | 30.76 |
Delete Subscription /wp-admin/admin.php?page=chiron_delete_subscription | 3.28 | 31.80 |
Add new Source and Subscription /wp-admin/admin.php?page=chiron_add_source_and_subscription | 3.32 | 31.72 |
News-Dashboard /wp-admin/admin.php?page=chiron_dashboard | 3.29 | 32.46 |
Debugging /wp-admin/admin.php?page=chiron_debugging | 3.29 | 31.63 |
Add new Category /wp-admin/admin.php?page=chiron_add_category | 3.30 | 29.35 |
All Sources /wp-admin/admin.php?page=chiron_manage_sources | 3.32 | 32.45 |
Settings /wp-admin/admin.php?page=chiron_settings | 3.30 | 33.15 |
Add new Source /wp-admin/admin.php?page=chiron_add_source | 3.30 | 31.06 |
Server storage [IO: ▲0.20MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_chiron_source_meta |
wp_chiron_item_meta |
wp_chiron_source |
wp_chiron_item |
wp_chiron_subscription |
wp_chiron_category |
wp_chiron_source_type |
New WordPress options |
---|
widget_recent-posts |
chiron |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Chiron
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲171 | 13.21 ▼1.15 | 1.91 ▲0.16 | 43.03 ▲1.21 |
Dashboard /wp-admin | 2,290 ▲108 | 4.89 ▼0.01 | 107.19 ▼7.60 | 42.19 ▼5.45 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 1.99 ▲0.00 | 39.62 ▼4.37 | 36.23 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.27 ▲4.91 | 651.78 ▲26.03 | 49.68 ▼2.26 |
Media Library /wp-admin/upload.php | 1,427 ▲48 | 4.26 ▲0.02 | 96.54 ▼3.35 | 42.36 ▼2.21 |
Edit Source /wp-admin/admin.php?page=chiron_edit_source | 791 | 2.05 | 25.68 | 22.41 |
Manage Subscription /wp-admin/admin.php?page=chiron_manage_subscription | 789 | 2.02 | 24.18 | 22.10 |
Delete Subscription /wp-admin/admin.php?page=chiron_delete_subscription | 797 | 2.14 | 25.09 | 23.36 |
Add new Source and Subscription /wp-admin/admin.php?page=chiron_add_source_and_subscription | 813 | 2.05 | 25.10 | 23.04 |
News-Dashboard /wp-admin/admin.php?page=chiron_dashboard | 822 | 2.06 | 24.79 | 24.79 |
Debugging /wp-admin/admin.php?page=chiron_debugging | 876 | 2.17 | 23.04 | 28.70 |
Add new Category /wp-admin/admin.php?page=chiron_add_category | 809 | 2.05 | 24.30 | 21.92 |
All Sources /wp-admin/admin.php?page=chiron_manage_sources | 802 | 2.05 | 23.86 | 24.42 |
Settings /wp-admin/admin.php?page=chiron_settings | 789 | 2.03 | 23.73 | 23.98 |
Add new Source /wp-admin/admin.php?page=chiron_add_source | 809 | 2.06 | 24.60 | 22.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_chiron_item_meta
- wp_chiron_source
- wp_chiron_source_type
- wp_chiron_subscription
- wp_chiron_category
- wp_chiron_item
- wp_chiron_source_meta
- The uninstall procedure has failed, leaving 7 options in the database
- chiron
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% 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
- > GET request to /wp-admin/admin.php?page=chiron_delete_subscription
- > Notice in wp-content/plugins/chiron/chiron.php+768
Undefined variable: source_id
- > GET request to /wp-admin/admin.php?page=chiron_delete_subscription
- > Notice in wp-content/plugins/chiron/chiron.php+777
Undefined variable: source
- > GET request to /wp-admin/admin.php?page=chiron_delete_subscription
- > Notice in wp-content/plugins/chiron/chiron.php+777
Trying to get property 'title' of non-object
- > GET request to /wp-admin/admin.php?page=chiron_dashboard
- > Notice in wp-content/plugins/chiron/chiron.php+201
Undefined index: day
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chiron_debugging
- > Notice in wp-content/plugins/chiron/core/classes/chiron_core.db-class.php+41
Undefined variable: result
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/chiron/core/templates/footer.tpl.php
- > /wp-content/plugins/chiron/chiron.php
- > /wp-content/plugins/chiron/core/templates/header.tpl.php
- > /wp-content/plugins/chiron/core/classes/bootstrap.php
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant CHIRON_DB_USR - assumed 'CHIRON_DB_USR' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/core/classes/bootstrap.php on line 15
- > PHP Warning
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/chiron.php on line 16
- > PHP Warning
Use of undefined constant CHIRON_DB_SRV - assumed 'CHIRON_DB_SRV' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/core/classes/bootstrap.php on line 15
- > PHP Warning
mysqli::__construct(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in wp-content/plugins/chiron/core/classes/chiron_db.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/chiron.php on line 21
- > PHP Warning
mysqli::select_db(): Couldn't fetch mysqli in wp-content/plugins/chiron/core/classes/chiron_db.php on line 13
- > PHP Warning
Use of undefined constant DB_PWD - assumed 'DB_PWD' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/core/classes/config-default.php on line 14
- > PHP Warning
Use of undefined constant CHIRON_DB_PRE - assumed 'CHIRON_DB_PRE' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/core/classes/bootstrap.php on line 15
- > PHP Warning
Use of undefined constant DB_DBS - assumed 'DB_DBS' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/core/classes/config-default.php on line 16
- > PHP Warning
Use of undefined constant DB_USER - assumed 'DB_USER' (this will throw an Error in a future version of PHP) in wp-content/plugins/chiron/chiron.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (The main personalized Dashboard of Chiron.)
- Donate link: Please fix this invalid url: ""
chiron/chiron.php 92% from 13 tests
The primary PHP file in "Chiron" version 0.9i... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.9i...")
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 plugin1,697 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 395 | 109 | 1,676 |
Markdown | 1 | 16 | 0 | 17 |
CSS | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.91 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 86 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 86 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
chiron-favicon.png | 0.92KB | 1.23KB | 0.00% |
assets/screenshot-1.png | 122.47KB | 34.35KB | ▼ 71.95% |