94% about-us-shortcode

Code Review | About Us Team

WordPress plugin About Us Team scored 94% 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: 5.9.2
  • 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,175 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by About Us Team
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0352.49 ▲2.31
Dashboard /wp-admin3.49 ▲0.0834.33 ▲0.79
Posts /wp-admin/edit.php3.71 ▲0.0737.70 ▼1.35
Add New Post /wp-admin/post-new.php6.95 ▼0.0293.40 ▼1,190.01
Media Library /wp-admin/upload.php3.36 ▲0.0723.19 ▲0.26
Add New Team /wp-admin/post-new.php?post_type=uebns3.6541.88
All Teams /wp-admin/edit.php?post_type=uebns3.5029.47
Team options /wp-admin/options-general.php?page=uebns3.3325.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 3 new options
New WordPress options
uebns_plugin_version
uebns_setting_main_color_hover
uebns_setting_main_color

Browser metrics Passed 4 tests

Checking browser requirements for About Us Team
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,855 ▲10116.52 ▲0.816.69 ▲0.672.81 ▲0.29
Dashboard /wp-admin2,945 ▲946.97 ▲0.79118.12 ▼28.98155.96 ▼7.39
Posts /wp-admin/edit.php2,750 ▲623.56 ▲0.3365.21 ▲2.59150.50 ▲11.20
Add New Post /wp-admin/post-new.php1,832 ▲17119.36 ▲3.22384.73 ▼6.38186.16 ▲36.25
Media Library /wp-admin/upload.php1,751 ▲536.03 ▲0.50115.96 ▼20.60188.77 ▼1.78
Add New Team /wp-admin/post-new.php?post_type=uebns3,1225.69115.19193.34
All Teams /wp-admin/edit.php?post_type=uebns1,6235.1186.60111.22
Team options /wp-admin/options-general.php?page=uebns2,0993.5376.67146.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > 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-user.php:23
    • > 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-admin.php:33
    • > 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-metaboxes-teams-content.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-us-shortcode/about-us-shortcode.php:35
    • > 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-settings.php:111

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: about, post, abaoutus, site, member...

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

The entry point to "About Us Team" version 0.1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,855 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP121554691,117
CSS23417325
JavaScript45951235
PO File180106178

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
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

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.49MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-128x128.png6.06KB2.96KB▼ 51.17%
assets/img/screenshot-1.png253.61KB78.62KB▼ 69.00%
assets/img/settings_theme_layout_1.png2.39KB1.55KB▼ 35.08%
assets/img/screenshot-3.png56.63KB20.93KB▼ 63.05%
assets/img/settings_photo_setting_round.png1.69KB0.49KB▼ 71.03%