78% cbxwpreadymix

Code Review | CBX Ready Mix

WordPress plugin CBX Ready Mix scored 78% from 54 tests.

About plugin

  • Plugin page: cbxwpreadymix
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.0
  • WordPress version: 5.9.2
  • First release: Jan 6, 2018
  • Latest release: Apr 16, 2020
  • Number of updates: 9
  • Update frequency: every 92.4 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 693 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼290.07ms] 75% from 4 tests

This is a short check of server-side resources used by CBX Ready Mix
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 1,633.18ms on /wp-admin/options-general.php?page=cbxwpreadymix)
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2255.56 ▲7.52
Dashboard /wp-admin3.63 ▲0.2340.62 ▲7.40
Posts /wp-admin/edit.php3.86 ▲0.2241.86 ▲4.32
Add New Post /wp-admin/post-new.php7.08 ▲0.1192.93 ▼1,173.38
Media Library /wp-admin/upload.php3.49 ▲0.2025.05 ▲1.37
Add New /wp-admin/post-new.php?post_type=cbxbrand3.8341.82
Add New /wp-admin/post-new.php?post_type=cbxportfolio3.8445.18
CBX WP Readymix /wp-admin/options-general.php?page=cbxwpreadymix4.651,633.18
All Portfolio /wp-admin/edit.php?post_type=cbxportfolio3.6328.75
Add New /wp-admin/post-new.php?post_type=cbxtestimonial3.8339.83
Add New /wp-admin/post-new.php?post_type=cbxteam3.8341.48
All Brand /wp-admin/edit.php?post_type=cbxbrand3.6329.56
Categories /wp-admin/edit-tags.php?taxonomy=cbxportfoliocat&post_type=cbxportfolio3.5828.57
All Team /wp-admin/edit.php?post_type=cbxteam3.6327.31
Tags /wp-admin/edit-tags.php?taxonomy=cbxportfoliotag&post_type=cbxportfolio3.5827.65

Server storage [IO: ▲2.49MB] [DB: ▲0.06MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 142 new files
Database: no new tables, 5 new options
New WordPress options
widget_cbxwpreadymixportfolio_widget
cbxwpreadymix_general
widget_cbxwpreadymixbrand_widget
widget_cbxwpreadymixtestimonial_widget
widget_cbxwpreadymixteam_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CBX Ready Mix
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,270 ▲54818.18 ▲2.1711.14 ▲5.493.29 ▲0.89
Dashboard /wp-admin3,268 ▲4078.36 ▲2.18139.99 ▲9.36145.13 ▼13.38
Posts /wp-admin/edit.php3,100 ▲4285.15 ▲1.7979.37 ▲17.58140.36 ▼3.25
Add New Post /wp-admin/post-new.php1,782 ▲14820.51 ▲3.08386.50 ▼62.68172.27 ▲27.38
Media Library /wp-admin/upload.php1,874 ▲1795.68 ▲0.19109.35 ▼18.66186.74 ▲3.34
Add New /wp-admin/post-new.php?post_type=cbxbrand3,03610.23190.11195.84
Add New /wp-admin/post-new.php?post_type=cbxportfolio3,3419.84186.04186.60
CBX WP Readymix /wp-admin/options-general.php?page=cbxwpreadymix1,9356.52107.61156.00
All Portfolio /wp-admin/edit.php?post_type=cbxportfolio1,7995.6573.70113.33
Add New /wp-admin/post-new.php?post_type=cbxtestimonial3,11010.23195.88194.32
Add New /wp-admin/post-new.php?post_type=cbxteam3,17510.34185.21191.95
All Brand /wp-admin/edit.php?post_type=cbxbrand1,7735.5875.31111.42
Categories /wp-admin/edit-tags.php?taxonomy=cbxportfoliocat&post_type=cbxportfolio2,0295.1075.01109.34
All Team /wp-admin/edit.php?post_type=cbxteam1,7785.5774.85112.44
Tags /wp-admin/edit-tags.php?taxonomy=cbxportfoliotag&post_type=cbxportfolio1,9945.0479.65111.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.06MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 5 options in the database
    • widget_cbxwpreadymixportfolio_widget
    • widget_cbxwpreadymixtestimonial_widget
    • cbxwpreadymix_general
    • widget_cbxwpreadymixbrand_widget
    • widget_cbxwpreadymixteam_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cbxwpreadymix/public/partials/cbxwpreadymix-public-display.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cbxwpreadymix/includes/widget/cbxwpreadymixtestimonial_widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cbxwpreadymix/includes/widget/cbxwpreadymixportfolio_widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cbxwpreadymix/includes/widget/cbxwpreadymixteam_widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cbxwpreadymix/includes/widget/cbxwpreadymixbrand_widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: bootstrap, shortcode, carousel, portfolio, testimonial...

cbxwpreadymix/cbxwpreadymix.php Passed 13 tests

"CBX Ready Mix" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Team, Testimonial, Portfolio, Brand, Bootstrap Shortcode and many more

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,114 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code
CSS1056637,132
LESS761,1941,5585,739
PHP209361,3812,591
JavaScript74999261,991
JSON100304
SVG100288
Markdown137069

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity18.07
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods131
▷ Static methods75.34%
▷ Public methods12696.18%
▷ Protected methods00.00%
▷ Private methods53.82%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 1.30MB with 0.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png177.47KB71.80KB▼ 59.54%
public/vendor/owl-carousel/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%
assets/screenshot-2.png189.29KB43.46KB▼ 77.04%
assets/icon-128x128.png25.81KB4.05KB▼ 84.32%
assets/icon-256x256.png27.83KB5.10KB▼ 81.69%