89% jwd-teams

Code Review | JWD Teams

WordPress plugin JWD Teams scored89%from 54 tests.

About plugin

  • Plugin page: jwd-teams
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 17, 2017
  • Latest release: Aug 27, 2020
  • Number of updates: 46
  • Update frequency: every 28.6 days
  • Top authors: jordachewd (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,521 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼4.09ms] Passed 4 tests

An overview of server-side resources used by JWD Teams
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3539.41 ▲0.47
Dashboard /wp-admin3.65 ▲0.3547.67 ▼2.40
Posts /wp-admin/edit.php3.77 ▲0.4149.22 ▲0.31
Add New Post /wp-admin/post-new.php6.24 ▲0.3691.52 ▼14.74
Media Library /wp-admin/upload.php3.57 ▲0.3537.69 ▲5.13
All Teams /wp-admin/edit.php?post_type=jwd_team3.7141.45
Add New Team /wp-admin/post-new.php?post_type=jwd_team3.6651.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by JWD Teams
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11813.66 ▼0.672.02 ▲0.0238.65 ▼7.33
Dashboard /wp-admin2,239 ▲514.84 ▼0.22110.19 ▼5.6840.17 ▼5.55
Posts /wp-admin/edit.php2,122 ▲332.06 ▲0.0738.48 ▼0.6138.17 ▲6.24
Add New Post /wp-admin/post-new.php1,542 ▲1417.59 ▼5.72680.84 ▲45.6453.88 ▲0.82
Media Library /wp-admin/upload.php1,424 ▲334.17 ▼0.1596.87 ▼2.6141.50 ▼2.30
All Teams /wp-admin/edit.php?post_type=jwd_team1,3093.6458.1629.12
Add New Team /wp-admin/post-new.php?post_type=jwd_team3,1015.28161.9276.64

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (54 tag instead of maximum 10)
The official readme.txt is a good inspiration

jwd-teams/jwdteams.php 85% from 13 tests

The main PHP file in "JWD Teams" ver. 1.5.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("jwd-teams.php" instead of "jwdteams.php")

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
Success! There were no dangerous files found in this plugin10,940 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS142661355,037
SVG1002,671
PO File75535811,204
JavaScript801251,093
PHP102797935

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity31.25
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity5.48
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods54
▷ Static methods00.00%
▷ Public methods4481.48%
▷ Protected methods00.00%
▷ Private methods1018.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/jordachewd_200x200px.png12.38KB4.30KB▼ 65.25%