Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by Quick View by Code Astrology
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.93 ▼8.85 |
Dashboard /wp-admin | 3.43 ▲0.12 | 52.40 ▲6.63 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.57 ▲0.57 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.65 ▼8.38 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 42.29 ▲4.21 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 121 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Quick View by Code Astrology
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲199 | 13.65 ▼0.72 | 7.04 ▲4.75 | 25.86 ▼22.54 |
Dashboard /wp-admin | 2,238 ▲47 | 5.80 ▲0.90 | 101.38 ▼0.78 | 46.97 ▲3.52 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.03 ▲0.06 | 42.17 ▲1.60 | 40.91 ▲6.25 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 23.09 ▲5.42 | 664.65 ▼19.87 | 58.56 ▲8.48 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.28 ▲0.08 | 97.50 ▼16.61 | 47.02 ▼1.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function add_setting() on null in wp-content/plugins/ca-quick-view/includes/customizers/cutomizer-controls/controls/customizer-animation.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/ca-quick-view/includes/customizers/cutomizer-controls/controls/typography-control/control-typography.php:8
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/ca-quick-view/framework/ca-framework/form/inc/input-base.php:15
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/ca-quick-view/framework/ca-framework/form/fields/input.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ca-quick-view/includes/style.php:8
- > PHP Notice
Undefined variable: wp_customize in wp-content/plugins/ca-quick-view/includes/customizers/cutomizer-controls/controls/customizer-animation.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Require_Control' not found in wp-content/plugins/ca-quick-view/framework/ca-framework/example.php:15
- > PHP Warning
include(): Failed opening 'wp-content/plugins/ca-quick-view/framework/ca-framework/ca-framework/loader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ca-quick-view/framework/ca-framework/example.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/ca-quick-view/includes/customizers/cutomizer-controls/controls/slider-range-control/class-slider-range-control.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/ca-quick-view/includes/customizers/cutomizer-controls/controls/range-control/class-customizer-range-value-control.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in ca-quick-view/assets to your readme.txt
ca-quick-view/init.php 77% from 13 tests
"Quick View by Code Astrology" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ca-quick-view.php" instead of "init.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected12,333 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 990 | 1,653 | 5,352 |
CSS | 23 | 123 | 194 | 3,243 |
PHP | 45 | 587 | 969 | 2,599 |
LESS | 9 | 68 | 61 | 726 |
JSON | 1 | 0 | 0 | 230 |
Markdown | 2 | 36 | 0 | 124 |
SVG | 3 | 22 | 0 | 59 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 139 | |
▷ Static methods | 19 | 13.67% |
▷ Public methods | 127 | 91.37% |
▷ Protected methods | 1 | 0.72% |
▷ Private methods | 11 | 7.91% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 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
2 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/arrow.png | 0.30KB | 0.24KB | ▼ 21.61% |
includes/customizers/cutomizer-controls/controls/range-control/assets/customizer-range-value-suffix.png | 49.86KB | 15.08KB | ▼ 69.75% |