Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.60MB] [CPU: ▲0.69ms] Passed 4 tests
An overview of server-side resources used by Crystal Ball Insights
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 44.58 ▲5.24 |
Dashboard /wp-admin | 3.92 ▲0.58 | 51.39 ▼12.73 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 46.45 ▲7.61 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 105.06 ▲8.74 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 38.09 ▲2.64 |
Crystal Ball /wp-admin/admin.php?page=log_page | 3.68 | 29.19 |
Settings /wp-admin/admin.php?page=crystal-ball-settings | 3.75 | 33.52 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_crystal_ball_insight |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
crystal-ball-settings |
can_compress_scripts |
widget_theysaidso_widget |
crystal_ball_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Crystal Ball Insights
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲140 | 13.55 ▼0.82 | 1.70 ▼0.10 | 42.78 ▼1.26 |
Dashboard /wp-admin | 2,292 ▲104 | 4.89 ▼0.03 | 112.82 ▼5.66 | 47.86 ▼0.44 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.03 ▲0.04 | 37.39 ▼4.42 | 32.79 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,558 ▲25 | 20.94 ▼2.33 | 591.51 ▼48.53 | 56.16 ▲7.52 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.26 ▼0.02 | 100.63 ▼0.58 | 42.41 ▼1.23 |
Crystal Ball /wp-admin/admin.php?page=log_page | 1,232 | 1.82 | 28.82 | 36.51 |
Settings /wp-admin/admin.php?page=crystal-ball-settings | 835 | 2.07 | 28.02 | 28.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- crystal-ball-settings
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=log_page
- > Notice in wp-content/plugins/crystal-ball-insight/classes/class-cbi-export.php+28
Undefined index: cbi-record-actions-submit
- > GET request to /wp-admin/admin.php?page=log_page
- > Notice in wp-content/plugins/crystal-ball-insight/classes/class-cbi-log-list-table.php+584
Undefined index: typeshow
- > GET request to /wp-admin/admin.php?page=log_page
- > Notice in wp-content/plugins/crystal-ball-insight/classes/class-cbi-log-list-table.php+645
Undefined index: orderby
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/crystal-ball-insight/classes/class-cbi-api.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=crystal-ball-settings
- > Network (severe)
wp-content/plugins/crystal-ball-insight/assets/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=crystal-ball-settings
- > Network (severe)
wp-content/plugins/crystal-ball-insight/assets/js/settings.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=crystal-ball-settings
- > Network (severe)
wp-content/plugins/crystal-ball-insight/assets/css/settings.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Crystal Ball Dashboard), #2 (Annotations Over Google Analytics Chart), #3 (The settings page), #4 (Plugin Dashboard)
- Tags: You are using too many tags: 19 tag instead of maximum 10
crystal-ball-insight/crystal-ball-insight.php 92% from 13 tests
The main PHP file in "Crystal Ball Insights" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 228 characters long)
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin3,063 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 667 | 278 | 3,063 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 13.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 3 | 10.34% |
▷ Concrete classes | 26 | 89.66% |
▷ Final classes | 2 | 7.69% |
Methods | 171 | |
▷ Static methods | 17 | 9.94% |
▷ Public methods | 150 | 87.72% |
▷ Protected methods | 11 | 6.43% |
▷ Private methods | 10 | 5.85% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 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
PNG images were not found in this plugin