83% bigboss-cpt-post-widget

Code Review | Bigboss Custom Post Type Widget

WordPress plugin Bigboss Custom Post Type Widget scored83%from 54 tests.

About plugin

  • Plugin page: bigboss-cpt-post-...
  • Plugin version: 3.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2014
  • Latest release: May 15, 2019
  • Number of updates: 43
  • Update frequency: every 38.2 days
  • Top authors: bulbulbigboss (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active /1,024 total downloads

Benchmarks

Plugin footprint 83% 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.02MB] [CPU: ▼4.52ms] Passed 4 tests

This is a short check of server-side resources used by Bigboss Custom Post Type Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.57 ▼2.60
Dashboard /wp-admin3.33 ▲0.0247.98 ▼2.86
Posts /wp-admin/edit.php3.38 ▲0.0247.52 ▼2.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.18 ▼9.92
Media Library /wp-admin/upload.php3.25 ▲0.0237.96 ▼2.71

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

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

Browser metrics Passed 4 tests

Bigboss Custom Post Type Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.391.66 ▲0.0940.99 ▲0.36
Dashboard /wp-admin2,195 ▲155.62 ▲0.0287.49 ▼4.1437.98 ▼7.31
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0437.95 ▲2.8536.14 ▼4.46
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.55682.13 ▼5.3669.75 ▲3.41
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0196.32 ▼10.6142.09 ▼3.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bigboss-cpt-post-widget/plugin-hooks.php:162

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (2.)
Please take inspiration from this readme.txt

bigboss-cpt-post-widget/plugin-hooks.php 85% from 13 tests

"Bigboss Custom Post Type Widget" version 3.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bigboss-cpt-post-widget.php" instead of "plugin-hooks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected107 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13423107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected