84% wp-plugin-showroom

Code Review | WP Plugin Showroom

WordPress plugin WP Plugin Showroom scored84%from 54 tests.

About plugin

  • Plugin page: wp-plugin-showroom
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.7
  • WordPress version: 6.3.1
  • First release: Feb 9, 2020
  • Latest release: Mar 5, 2021
  • Number of updates: 9
  • Update frequency: every 43.6 days
  • Top authors: triopsi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /568 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.42ms] Passed 4 tests

A check of server-side resources used by WP Plugin Showroom
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.1038.80 ▼1.22
Dashboard /wp-admin3.38 ▲0.0844.35 ▼5.83
Posts /wp-admin/edit.php3.44 ▲0.0949.19 ▲5.22
Add New Post /wp-admin/post-new.php5.97 ▲0.0983.03 ▼0.46
Media Library /wp-admin/upload.php3.31 ▲0.0836.19 ▲1.82
WP Plugin Options /wp-admin/options-general.php?page=plgshow3.2731.27

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
plgshow_plugin_version
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Plugin Showroom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,173 ▲43826.02 ▲12.0344.51 ▲42.6439.55 ▼2.34
Dashboard /wp-admin2,295 ▲10411.65 ▲5.77138.06 ▲35.4941.64 ▲2.25
Posts /wp-admin/edit.php2,152 ▲6610.26 ▲8.2471.28 ▲37.1129.45 ▼4.32
Add New Post /wp-admin/post-new.php6,243 ▲4,72319.48 ▼3.59756.27 ▲79.8438.96 ▼19.34
Media Library /wp-admin/upload.php1,495 ▲10710.84 ▲6.62127.42 ▲22.6659.60 ▲14.41
WP Plugin Options /wp-admin/options-general.php?page=plgshow9449.8078.6042.48

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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 | 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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-plugin-showroom/wp-plugin-showroom.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-showroom/inc/plgshow-init.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-showroom/inc/plgshow-admin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-showroom/inc/plgshow-user.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-plugin-showroom/inc/plgshow-setting.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-plugin-showroom/inc/plgshow-shortcode.php:25

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: site, plugin, wp, showroom, shortcode...

wp-plugin-showroom/wp-plugin-showroom.php 92% from 13 tests

"WP Plugin Showroom" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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

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
Success! There were no dangerous files found in this plugin658 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP775258339
CSS314183
PO File1291272
JavaScript26064

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin