84% os-our-team

Code Review | OS Our Team

WordPress plugin OS Our Team scored84%from 54 tests.

About plugin

  • Plugin page: os-our-team
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.4
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Apr 24, 2017
  • Number of updates: 27
  • Update frequency: every 20.8 days
  • Top authors: offshorent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,597 total downloads

Benchmarks

Plugin footprint 83% from 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.11MB] [CPU: ▼9.73ms] Passed 4 tests

Analyzing server-side resources used by OS Our Team
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.19 ▼7.66
Dashboard /wp-admin3.42 ▲0.1139.30 ▼9.58
Posts /wp-admin/edit.php3.51 ▲0.1644.54 ▼1.64
Add New Post /wp-admin/post-new.php6.12 ▲0.2479.39 ▼17.77
Media Library /wp-admin/upload.php3.35 ▲0.1330.12 ▼3.91
About /wp-admin/edit.php?post_type=os-our-team&page=about-os-out-team-developer3.2930.49
Add New /wp-admin/post-new.php?post_type=os-our-team3.5246.51
Our Team /wp-admin/edit.php?post_type=os-our-team3.3534.38
Settings /wp-admin/edit.php?post_type=os-our-team&page=os-settings3.2930.71

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

OS Our Team: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.24 ▼1.172.71 ▲0.8936.93 ▼7.56
Dashboard /wp-admin2,251 ▲664.89 ▼0.92110.24 ▲10.7039.79 ▼0.35
Posts /wp-admin/edit.php2,128 ▲392.05 ▲0.0336.33 ▼4.9433.73 ▼2.11
Add New Post /wp-admin/post-new.php1,550 ▲3623.22 ▲5.63671.94 ▲66.4768.73 ▲17.52
Media Library /wp-admin/upload.php1,421 ▲364.22 ▼0.0497.91 ▲0.1645.17 ▲4.20
About /wp-admin/edit.php?post_type=os-our-team&page=about-os-out-team-developer1,0102.0424.6928.14
Add New /wp-admin/post-new.php?post_type=os-our-team2,4217.60165.8464.97
Our Team /wp-admin/edit.php?post_type=os-our-team1,1191.9633.4132.57
Settings /wp-admin/edit.php?post_type=os-our-team&page=os-settings1,1852.0822.5127.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'ourTeamPostType' not found in wp-content/plugins/os-our-team/includes/admin/meta-boxes/views/os-out-team-social.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'ourTeamPostType' not found in wp-content/plugins/os-our-team/includes/admin/meta-boxes/views/os-out-team-custom.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (OS Our Team admin interface), #2 (OS Our Team Settings page), #3 (OS Our Team - Classic Layout), #4 (OS Our Team - Muse Layout), #5 (OS Our Team - Grid Layout)
Please take inspiration from this readme.txt

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

This is the main PHP file of "OS Our Team" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Display your employees, team members, or any type of list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected882 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP9200312876
CSS2003
JavaScript3003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.43
▷ Minimum class complexity1.00
▷ Maximum class complexity46.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods41
▷ Static methods37.32%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
9 PNG files occupy 1.18MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-5.png459.38KB112.37KB▼ 75.54%
images/delete.png0.70KB0.56KB▼ 19.50%
images/category.png0.48KB0.34KB▼ 28.63%
screenshot-2.png39.22KB14.98KB▼ 61.81%
screenshot-1.png42.07KB17.65KB▼ 58.05%