78% f4w-our-team

Code Review | Our Team

WordPress plugin Our Team scored78%from 54 tests.

About plugin

  • Plugin page: f4w-our-team
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2019
  • Latest release: Dec 26, 2019
  • Number of updates: 10
  • Update frequency: every 2.3 days
  • Top authors: flex4web (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /534 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.69MB] [CPU: ▲2.27ms] Passed 4 tests

Analyzing server-side resources used by Our Team
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3838.74 ▼3.42
Dashboard /wp-admin4.10 ▲0.8054.33 ▲6.49
Posts /wp-admin/edit.php4.12 ▲0.7756.73 ▲9.02
Add New Post /wp-admin/post-new.php6.71 ▲0.8289.37 ▼3.00
Media Library /wp-admin/upload.php4.02 ▲0.8038.95 ▲9.49
All Teams /wp-admin/edit.php?post_type=otmembers4.0740.07
Add New Team /wp-admin/post-new.php?post_type=otmembers4.6355.90
Help & Upgrade /wp-admin/edit.php?post_type=otmembers&page=f4w_our_team_menu_help4.0036.27

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 388 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Our Team
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲19714.10 ▼0.285.39 ▲3.7042.05 ▲0.71
Dashboard /wp-admin2,250 ▲624.95 ▲0.04110.08 ▲0.3638.62 ▼4.08
Posts /wp-admin/edit.php2,133 ▲412.09 ▲0.0841.68 ▲3.8035.79 ▲5.03
Add New Post /wp-admin/post-new.php1,549 ▲1623.14 ▼0.25725.50 ▲34.4958.13 ▲6.53
Media Library /wp-admin/upload.php1,432 ▲414.28 ▲0.0499.34 ▼0.1941.30 ▼1.66
All Teams /wp-admin/edit.php?post_type=otmembers1,1221.9932.0228.13
Add New Team /wp-admin/post-new.php?post_type=otmembers3,2054.56116.4456.89
Help & Upgrade /wp-admin/edit.php?post_type=otmembers&page=f4w_our_team_menu_help8462.2626.2127.69

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
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/f4w-our-team/lib/f4w-our-team-help.php
  • 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Text.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/f4w-our-team/lib/metaboxes/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in f4w-our-team/assets to your readme.txt
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

f4w-our-team/f4w-our-team.php Passed 13 tests

The main PHP file in "Our Team" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
130 characters long description:
F4W Our Teams is fully responsive and mobile friendly. This plugin shows team members profile information with social media links.

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 plugin51,371 lines of code in 230 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP662,2456,3587,703
CSS163431,2037,137
JavaScript83725901,493
Sass17305291,407
SVG100655
Markdown22160653

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.46
Average class complexity18.88
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes913.24%
▷ Concrete classes5986.76%
▷ Final classes00.00%
Methods533
▷ Static methods8616.14%
▷ Public methods44082.55%
▷ Protected methods9016.89%
▷ Private methods30.56%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/metaboxes/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
lib/metaboxes/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
lib/metaboxes/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
lib/metaboxes/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
lib/metaboxes/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%