62% wpb-circliful

Code Review | WPB Circliful

WordPress plugin WPB Circliful scored62%from 54 tests.

About plugin

  • Plugin page: wpb-circliful
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: May 10, 2014
  • Latest release: May 11, 2014
  • Number of updates: 11
  • Update frequency: every 28.0 days
  • Top authors: wpbean (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,037 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼38.34ms] Passed 4 tests

Server-side resources used by WPB Circliful
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.08 ▼0.3814.59 ▼26.25
Dashboard /wp-admin3.13 ▼0.1718.84 ▼31.32
Posts /wp-admin/edit.php3.13 ▼0.2220.02 ▼26.18
Add New Post /wp-admin/post-new.php3.13 ▼2.7520.40 ▼69.62
Media Library /wp-admin/upload.php3.13 ▼0.1019.10 ▼16.48
Add New /wp-admin/post-new.php?post_type=circliful3.1319.13
All Circliful /wp-admin/edit.php?post_type=circliful3.1323.28

Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WPB Circliful
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,094 ▲35915.13 ▲0.525.54 ▲3.8339.11 ▼5.18
Dashboard /wp-admin2,379 ▲1946.42 ▲0.52131.91 ▲14.9439.22 ▼7.92
Posts /wp-admin/edit.php2,279 ▲1903.53 ▲1.5255.79 ▲19.7735.64 ▼0.15
Add New Post /wp-admin/post-new.php1,572 ▲5223.16 ▲0.07661.51 ▼49.7636.67 ▼22.20
Media Library /wp-admin/upload.php1,424 ▲364.12 ▼0.0981.86 ▼21.4941.36 ▼2.55
Add New /wp-admin/post-new.php?post_type=circliful1,8924.3099.3442.29
All Circliful /wp-admin/edit.php?post_type=circliful1,2523.2646.0027.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/wpb-circliful/lib/init.php+746
    count(): Parameter must be an array or an object that implements Countable
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=circliful
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/wpb-circliful/lib/init.php+746
    count(): Parameter must be an array or an object that implements Countable

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpb-circliful/lib/tests/phpunit/includes/bootstrap.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-circliful/wpb_metaboxes.php:66
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wpb-circliful/lib/tests/phpunit/tests/CMB_Core_Test.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wpb-circliful/lib/init.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpb-circliful/main.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpb-circliful/lib/example-functions.php:11

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 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

wpb-circliful/main.php 85% from 13 tests

The main PHP script in "WPB Circliful" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpb-circliful.php" instead of "main.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)

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 plugin5,814 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63124032,247
PHP115541,0902,169
CSS56626570
SVG100414
Markdown3890289
Bourne Shell115459
JSON10031
YAML15018
XML10117

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity57.14
▷ Minimum class complexity1.00
▷ Maximum class complexity136.00
Average method complexity3.93
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods134
▷ Static methods3425.37%
▷ Public methods13298.51%
▷ Protected methods21.49%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
15 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
lib/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
lib/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
lib/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
lib/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%