83% custom-post-types-bubbles

Code Review | Custom Post Types Bubbles

WordPress plugin Custom Post Types Bubbles scored83%from 54 tests.

About plugin

  • Plugin page: custom-post-types...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Oct 9, 2018
  • Number of updates: 10
  • Update frequency: every 98.3 days
  • Top authors: asofantzis (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /1,617 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼15.85ms] Passed 4 tests

Server-side resources used by Custom Post Types Bubbles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.11 ▼5.04
Dashboard /wp-admin3.34 ▲0.0455.76 ▲3.26
Posts /wp-admin/edit.php3.39 ▲0.0349.75 ▼4.35
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.17 ▼57.25
Media Library /wp-admin/upload.php3.26 ▲0.0338.84 ▲3.23
CPT Bubbles /wp-admin/options-general.php?page=cpt-bubbles3.2330.62

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Post Types Bubbles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.43 ▼1.151.78 ▼0.3547.76 ▲1.77
Dashboard /wp-admin2,231 ▲465.06 ▼0.81103.15 ▼2.3539.85 ▼2.82
Posts /wp-admin/edit.php2,119 ▲302.30 ▲0.2838.59 ▼1.1132.76 ▼3.03
Add New Post /wp-admin/post-new.php1,535 ▲2123.23 ▲5.71615.66 ▼72.7634.57 ▼19.35
Media Library /wp-admin/upload.php1,413 ▲254.41 ▲0.29109.01 ▼7.9742.94 ▼10.34
CPT Bubbles /wp-admin/options-general.php?page=cpt-bubbles2,4673.1799.4630.32

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-post-types-bubbles/cpt-bubbles.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #2 (Custom Post Types Bubbles)
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

custom-post-types-bubbles/cpt-bubbles.php 85% from 13 tests

The primary PHP file in "Custom Post Types Bubbles" version 2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-post-types-bubbles.php" instead of "cpt-bubbles.php")

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
No dangerous file extensions were detected214 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP16615160
PO File1111152
CSS1001
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected