83% ca-quick-view

Code Review | Quick View by Code Astrology

WordPress plugin Quick View by Code Astrology scored83%from 54 tests.

About plugin

  • Plugin page: ca-quick-view
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2022
  • Latest release: Mar 7, 2023
  • Number of updates: 13
  • Update frequency: every 25.2 days
  • Top authors: codersaiful (76.92%)rafiul17 (23.08%)unikforce (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,643 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.93 ▼8.85
Dashboard /wp-admin3.43 ▲0.1252.40 ▲6.63
Posts /wp-admin/edit.php3.54 ▲0.1850.57 ▲0.57
Add New Post /wp-admin/post-new.php6.03 ▲0.1484.65 ▼8.38
Media Library /wp-admin/upload.php3.35 ▲0.1242.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19913.65 ▼0.727.04 ▲4.7525.86 ▼22.54
Dashboard /wp-admin2,238 ▲475.80 ▲0.90101.38 ▼0.7846.97 ▲3.52
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0642.17 ▲1.6040.91 ▲6.25
Add New Post /wp-admin/post-new.php1,544 ▲3023.09 ▲5.42664.65 ▼19.8758.56 ▲8.48
Media Library /wp-admin/upload.php1,423 ▲354.28 ▲0.0897.50 ▼16.6147.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

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
You can take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
JavaScript219901,6535,352
CSS231231943,243
PHP455879692,599
LESS96861726
JSON100230
Markdown2360124
SVG322059

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 code0.21
Average class complexity5.38
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes29
▷ Abstract classes00.00%
▷ Concrete classes29100.00%
▷ Final classes00.00%
Methods139
▷ Static methods1913.67%
▷ Public methods12791.37%
▷ Protected methods10.72%
▷ Private methods117.91%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
assets/img/arrow.png0.30KB0.24KB▼ 21.61%
includes/customizers/cutomizer-controls/controls/range-control/assets/customizer-range-value-suffix.png49.86KB15.08KB▼ 69.75%