78% plugin-builder

Code Review | Plugin Builder

WordPress plugin Plugin Builder scored78%from 54 tests.

About plugin

  • Plugin page: plugin-builder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Apr 21, 2015
  • Number of updates: 7
  • Update frequency: every 119.0 days
  • Top authors: MrWiblog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /3,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Plugin Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.16 ▼4.54
Dashboard /wp-admin3.34 ▼0.0143.62 ▼19.15
Posts /wp-admin/edit.php3.45 ▲0.0951.52 ▲5.08
Add New Post /wp-admin/post-new.php5.94 ▲0.0587.58 ▼18.34
Media Library /wp-admin/upload.php3.26 ▲0.0333.06 ▲0.73
Builder /wp-admin/plugins.php?page=plugin-builder3.2534.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Plugin Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17014.11 ▼0.645.18 ▲3.4439.58 ▼4.30
Dashboard /wp-admin2,214 ▲265.85 ▲0.95112.11 ▼4.8941.60 ▼4.31
Posts /wp-admin/edit.php2,100 ▲322.04 ▲0.0140.18 ▲3.6435.21 ▲0.66
Add New Post /wp-admin/post-new.php1,521 ▲723.30 ▲5.66645.34 ▼44.8648.01 ▼13.14
Media Library /wp-admin/upload.php1,396 ▲84.20 ▼0.0497.09 ▼2.3741.96 ▼1.58
Builder /wp-admin/plugins.php?page=plugin-builder7632.0723.2824.98

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/plugin-builder/cache/wordpress-plugin-boilerplate/plugin-name/trunk/public/partials/plugin-name-public-display.php
    • > /wp-content/plugins/plugin-builder/public/partials/plugin-builder-public-display.php
    • > /wp-content/plugins/plugin-builder/cache/wordpress-plugin-boilerplate/plugin-name/trunk/admin/partials/plugin-name-admin-display.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/plugin-builder/admin/partials/builder.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/custom-post-types.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/list.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-plugin-register.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-util-php.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/classes.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/includes.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Plugin_Builder_Include' not found in wp-content/plugins/plugin-builder/includes/include-classes/class-wordpress-settings-framework.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/plugin-builder/admin/partials/general-settings.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
3 plugin tags: plugin, development, boilerplate

plugin-builder/plugin-builder.php Passed 13 tests

The main PHP file in "Plugin Builder" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Build a plugin from the WordPress Plugin Boilerplate.

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 plugin3,364 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,0502,4913,187
Markdown248067
JavaScript3135459
CSS30851

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity16.66
▷ Minimum class complexity1.00
▷ Maximum class complexity251.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods190
▷ Static methods5830.53%
▷ Public methods14978.42%
▷ Protected methods52.63%
▷ Private methods3618.95%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ Public constants7100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/banner-772x250.png0.00KB0.00KB0.00%
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/screenshot-1.png0.00KB0.00KB0.00%
(invalid) cache/wordpress-plugin-boilerplate/plugin-name/assets/icon-256x256.png0.00KB0.00KB0.00%