78% pro-teams

Code Review | Pro Teams

WordPress plugin Pro Teams scored78%from 54 tests.

About plugin

  • Plugin page: pro-teams
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Dec 31, 2022
  • Latest release: Jan 14, 2023
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: Ulloa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.64MB] [CPU: ▼20.26ms] Passed 4 tests

This is a short check of server-side resources used by Pro Teams
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.91 ▼6.61
Dashboard /wp-admin3.36 ▲0.0148.50 ▼16.88
Posts /wp-admin/edit.php3.41 ▲0.0552.24 ▼0.93
Add New Post /wp-admin/post-new.php3.21 ▼2.6839.10 ▼56.63
Media Library /wp-admin/upload.php3.28 ▲0.0537.57 ▲3.45
Add New /wp-admin/post-new.php?post_type=proteams3.1435.28
Pro Team /wp-admin/edit.php?post_type=proteams3.3234.24

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Pro Teams: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.37 ▲0.071.81 ▼0.1639.89 ▼16.26
Dashboard /wp-admin2,222 ▲455.53 ▼0.1785.82 ▼11.9039.38 ▼6.59
Posts /wp-admin/edit.php2,130 ▲302.01 ▼0.0437.10 ▼1.0035.67 ▲4.14
Add New Post /wp-admin/post-new.php1,568 ▲4223.34 ▲5.51675.10 ▲58.8555.73 ▲3.67
Media Library /wp-admin/upload.php1,421 ▲184.22 ▲0.03100.31 ▲4.2043.75 ▼0.79
Add New /wp-admin/post-new.php?post_type=proteams2,3117.66178.5967.92
Pro Team /wp-admin/edit.php?post_type=proteams1,1001.9934.5532.33

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 detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=proteams
    • > Notice in wp-content/plugins/pro-teams/pro-teams.php+335
    Undefined index: post_type

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
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pro-teams/templates/single-proteams.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pro-teams/templates/archive-proteams.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pro-teams/addSingle.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please describe screenshot #1 in pro-teams/assets to your readme.txt
The official readme.txt is a good inspiration

pro-teams/pro-teams.php Passed 13 tests

The primary PHP file in "Pro Teams" version 1.0 is used by WordPress to initiate all plugin functionality
36 characters long description:
Show your team members on your page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin624 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43939409
CSS13611179
PO File1101036

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/noimage.png26.12KB6.80KB▼ 73.98%