84% about-us-shortcode

Code Review | About Us Team

WordPress plugin About Us Team scored 84% from 54 tests.

About plugin

  • Plugin page: about-us-shortcode
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2020
  • Latest release: Feb 13, 2020
  • Number of updates: 15
  • Update frequency: every 27.1 days
  • Top authors: triopsi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,865 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.07MB] [CPU: ▼10.54ms] Passed 4 tests

A check of server-side resources used by About Us Team
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.28 ▼13.80
Dashboard /wp-admin3.38 ▲0.0749.02 ▼3.34
Posts /wp-admin/edit.php3.43 ▲0.0748.00 ▼1.10
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.06 ▼22.84
Media Library /wp-admin/upload.php3.30 ▲0.0734.91 ▼2.17
Team options /wp-admin/options-general.php?page=uebns3.2733.61
Add New Team /wp-admin/post-new.php?post_type=uebns3.3547.86
All Teams /wp-admin/edit.php?post_type=uebns3.3739.35

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
uebns_setting_main_color_hover
uebns_plugin_version
db_upgraded
widget_recent-comments
uebns_setting_main_color
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for About Us Team
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.50 ▼0.801.68 ▼0.0736.46 ▼15.17
Dashboard /wp-admin2,252 ▲705.13 ▼0.69104.54 ▼27.2141.97 ▼0.19
Posts /wp-admin/edit.php2,119 ▲302.36 ▲0.3435.46 ▲0.2234.26 ▲1.06
Add New Post /wp-admin/post-new.php1,557 ▲3417.86 ▼5.61723.05 ▲37.8136.66 ▼31.21
Media Library /wp-admin/upload.php1,444 ▲564.32 ▲0.1693.56 ▼6.6340.97 ▼1.37
Team options /wp-admin/options-general.php?page=uebns1,5402.3547.4737.24
Add New Team /wp-admin/post-new.php?post_type=uebns2,3643.6575.2786.86
All Teams /wp-admin/edit.php?post_type=uebns1,2333.5158.1927.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-save-metaboxes.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-teams-content.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-settings.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-shortcode-column.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-sidebar-settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-sidebar-shortcode.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-admin.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-us-shortcode/inc/uebns-shortcode.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-metaboxes-settings-teams.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/inc/uebns-user.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
7 plugin tags: abaoutus, post, team, site, member...

about-us-shortcode/about-us-shortcode.php 92% from 13 tests

The main PHP file in "About Us Team" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,855 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP121554691,117
CSS23417325
JavaScript45951235
PO File180106178

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/screenshot-4.png76.64KB37.40KB▼ 51.20%
assets/img/screenshot-3.png56.63KB20.93KB▼ 63.05%
assets/img/screenshot-1.png253.61KB78.62KB▼ 69.00%
assets/img/icon-128x128.png6.06KB2.96KB▼ 51.17%
assets/img/settings_theme_layout_2.png2.38KB1.55KB▼ 34.96%