84% c4d-team-member

Code Review | Team Member

WordPress plugin Team Member scored84%from 54 tests.

About plugin

  • Plugin page: c4d-team-member
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: Mar 14, 2017
  • Number of updates: 8
  • Update frequency: every 2.8 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 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.05MB] [CPU: ▼6.68ms] Passed 4 tests

An overview of server-side resources used by Team Member
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.88 ▼0.69
Dashboard /wp-admin3.35 ▲0.0549.05 ▼5.32
Posts /wp-admin/edit.php3.40 ▲0.0549.53 ▼4.13
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.93 ▼16.56
Media Library /wp-admin/upload.php3.28 ▲0.0536.33 ▼0.01
C4D Team Member /wp-admin/edit.php?post_type=c4d-team-member3.3238.37
Add New /wp-admin/post-new.php?post_type=c4d-team-member3.3952.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Team Member
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲12513.46 ▼0.918.52 ▲6.5245.87 ▲0.49
Dashboard /wp-admin2,222 ▲455.56 ▼0.0286.96 ▼14.0339.17 ▼7.69
Posts /wp-admin/edit.php2,127 ▲301.98 ▼0.0134.04 ▼2.7436.05 ▼3.02
Add New Post /wp-admin/post-new.php1,549 ▲2323.10 ▼0.50618.55 ▼70.8653.55 ▼7.17
Media Library /wp-admin/upload.php1,430 ▲304.24 ▲0.11100.84 ▼21.7543.09 ▼4.84
C4D Team Member /wp-admin/edit.php?post_type=c4d-team-member1,0971.9634.3728.75
Add New /wp-admin/post-new.php?post_type=c4d-team-member2,2677.51182.1563.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× 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/c4d-team-member/templates/default.php:13
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/c4d-team-member/templates/default.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-team-member/c4d-team-member.php:12

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

c4d-team-member/c4d-team-member.php Passed 13 tests

The main PHP file in "Team Member" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Manager Team Member and create slider/ grid

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
There were no executable files found in this plugin1,914 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3214221,324
CSS41828268
PHP22015215
Sass11084
JSON10023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
libs/owl-carousel/grabbing.png0.11KB0.14KB0.00%