84% awsm-team

Code Review | AWSM Team - Team Showcase Plugin

WordPress plugin AWSM Team - Team Showcase Plugin scored84%from 54 tests.

About plugin

  • Plugin page: awsm-team
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 9, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 27
  • Update frequency: every 93.6 days
  • Top authors: awsmin (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active /44,828 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼8.65ms] Passed 4 tests

An overview of server-side resources used by AWSM Team - Team Showcase Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1543.53 ▲0.45
Dashboard /wp-admin3.47 ▲0.1251.31 ▼15.39
Posts /wp-admin/edit.php3.58 ▲0.2249.88 ▼3.72
Add New Post /wp-admin/post-new.php6.11 ▲0.2385.91 ▼15.95
Media Library /wp-admin/upload.php3.39 ▲0.1637.82 ▲1.52
Add Team /wp-admin/post-new.php?post_type=awsm_team3.4946.33
Add New Member /wp-admin/post-new.php?post_type=awsm_team_member6.1288.82
Teams /wp-admin/edit.php?post_type=awsm_team3.4336.91
Members /wp-admin/edit.php?post_type=awsm_team_member3.4335.82

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

AWSM Team - Team Showcase Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲15613.61 ▼0.776.36 ▲4.2942.62 ▼0.27
Dashboard /wp-admin2,247 ▲625.90 ▲0.0495.98 ▼11.3938.70 ▼8.00
Posts /wp-admin/edit.php2,127 ▲382.02 ▼0.0135.54 ▼1.9636.78 ▼0.81
Add New Post /wp-admin/post-new.php1,546 ▲1917.73 ▼5.52687.65 ▲32.1754.73 ▼3.50
Media Library /wp-admin/upload.php1,426 ▲384.42 ▲0.2499.91 ▼10.7445.28 ▼0.27
Add Team /wp-admin/post-new.php?post_type=awsm_team1,7972.9262.8076.57
Add New Member /wp-admin/post-new.php?post_type=awsm_team_member7,03625.47889.6743.91
Teams /wp-admin/edit.php?post_type=awsm_team1,0982.0130.7829.89
Members /wp-admin/edit.php?post_type=awsm_team_member1,1071.9429.4332.99

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awsm-team/templates/cards.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awsm-team/templates/table.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/awsm-team/templates/cards.php on line 10
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/awsm-team/templates/cards.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/awsm-team/templates/list.php:9

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: users, team layout, team, team page, team shortcode...

awsm-team/awsm-team.php Passed 13 tests

The primary PHP file in "AWSM Team - Team Showcase Plugin" version 1.3.0 is used by WordPress to initiate all plugin functionality
128 characters long description:
The most versatile plugin to create and manage your Team page. Packed with 8 unique presets and number of styles to choose from.

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
Good job! No executable or dangerous file extensions detected3,090 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS5200541,913
PHP857310928
JavaScript4141160
SVG10089

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods33100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png0.40KB0.33KB▼ 17.00%
images/team-vc-icon.png2.23KB1.19KB▼ 46.80%
images/default-user.png44.17KB31.61KB▼ 28.44%