94% advanced-team

Code Review | Advanced Team

WordPress plugin Advanced Team scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-team
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.4
  • WordPress version: 5.9.2
  • First release: Mar 1, 2018
  • Latest release: Mar 20, 2018
  • Number of updates: 7
  • Update frequency: every 2.7 days
  • Top authors: codeincept (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 497 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼297.19ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Team
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1859.33 ▲3.78
Dashboard /wp-admin3.53 ▲0.1236.09 ▼9.06
Posts /wp-admin/edit.php3.76 ▲0.1240.96 ▼3.84
Add New Post /wp-admin/post-new.php7.00 ▲0.0396.15 ▼1,175.41
Media Library /wp-admin/upload.php3.41 ▲0.1129.63 ▼0.46
Category /wp-admin/edit-tags.php?taxonomy=team_category&post_type=advanced_team3.4128.98
Add New /wp-admin/post-new.php?post_type=advanced_team3.7748.57
All Items /wp-admin/edit.php?post_type=advanced_team3.5130.46

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Team
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,953 ▲23116.53 ▲0.889.82 ▲4.0616.39 ▲14.16
Dashboard /wp-admin2,935 ▲745.96 ▼0.22121.40 ▼40.12205.84 ▲38.67
Posts /wp-admin/edit.php2,734 ▲433.24 ▲0.0067.83 ▲2.75147.57 ▼67.15
Add New Post /wp-admin/post-new.php1,691 ▲416.52 ▼5.87415.76 ▲9.54185.13 ▲9.41
Media Library /wp-admin/upload.php1,743 ▲485.55 ▲0.02146.13 ▲1.21197.53 ▲13.12
Category /wp-admin/edit-tags.php?taxonomy=team_category&post_type=advanced_team1,6672.7755.68111.16
Add New /wp-admin/post-new.php?post_type=advanced_team3,56910.19204.45217.23
All Items /wp-admin/edit.php?post_type=advanced_team1,4333.1760.36111.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/advanced-team/public/partials/advanced-team-public-display.php
    • > /wp-content/plugins/advanced-team/admin/partials/advanced-team-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: team plugin, advanced team, teams, team member, codeincept...

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

The main PHP script in "Advanced Team" version 1.0.0 is automatically included on every request by WordPress
43 characters long description:
Design awesome team members showcase easily

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 detected655 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12122499390
CSS3415259
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.14
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin