68% probuilder

Code Review | Probuilder - Visual live CSS editor

WordPress plugin Probuilder - Visual live CSS editor scored 68% from 54 tests.

About plugin

  • Plugin page: probuilder
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 18, 2017
  • Number of updates: 12
  • Update frequency: N/A
  • Top authors: SacredClown (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 761 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▲2.55ms] Passed 4 tests

This is a short check of server-side resources used by Probuilder - Visual live CSS editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0651.89 ▲1.12
Dashboard /wp-admin3.34 ▲0.0459.28 ▲1.02
Posts /wp-admin/edit.php3.40 ▲0.0453.15 ▼2.04
Add New Post /wp-admin/post-new.php5.94 ▲0.05128.92 ▲30.39
Media Library /wp-admin/upload.php3.26 ▲0.0446.95 ▲10.11
Settings /wp-admin/admin.php?page=probuilder-settings3.2338.75
Probuilder /wp-admin/admin.php?page=probuilder3.2339.41

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables
wp_probuilder
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
probuilder_db_version
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Probuilder - Visual live CSS editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,990 ▲1,20114.26 ▲0.6712.43 ▲10.4058.19 ▲17.88
Dashboard /wp-admin2,290 ▲905.42 ▼0.38116.54 ▲7.5545.34 ▲7.19
Posts /wp-admin/edit.php2,149 ▲602.53 ▲0.4835.42 ▼5.1942.68 ▲5.11
Add New Post /wp-admin/post-new.php1,622 ▲8824.76 ▲1.67686.48 ▼52.7429.68 ▼32.28
Media Library /wp-admin/upload.php1,472 ▲874.67 ▲0.47101.10 ▼0.8842.86 ▼0.29
Settings /wp-admin/admin.php?page=probuilder-settings1,0182.4632.9232.21
Probuilder /wp-admin/admin.php?page=probuilder2,6187.73266.71356.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_probuilder
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • probuilder_db_version
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/probuilder/probuilder.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=probuilder
    • > Javascript (severe) in unknown
    http://cdn.iubenda.com/cs/tcf/stub.js 0:1328 Uncaught DOMException: Blocked a frame with origin "http://www.lingulo.com" from accessing a cross-origin frame.
    • > GET request to /wp-admin/admin.php?page=probuilder
    • > Javascript (severe) in unknown
    http://www.lingulo.com/wp-content/plugins/contact-form-7/modules/recaptcha/script.js?ver=5.3.2 27:2 Uncaught ReferenceError: grecaptcha is not defined

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: css editor, edit layout, css, change style, live css...

probuilder/probuilder.php Passed 13 tests

Analyzing the main PHP file in "Probuilder - Visual live CSS editor" version 0.0.1
60 characters long description:
Probuilder is the first live visual CSS editor for everyone.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin16,590 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74,0713,94114,704
CSS2114151,240
PHP26010646

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity50.00
▷ Minimum class complexity50.00
▷ Maximum class complexity50.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/css/jquery.minicolors.png67.02KB34.31KB▼ 48.80%