83% wp-super-team

Code Review | WP Super Team

WordPress plugin WP Super Team scored 83% from 54 tests.

About plugin

  • Plugin page: wp-super-team
  • Plugin version: 1.0.0
  • PHP compatiblity: 3.0.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 14, 2019
  • Latest release: Feb 14, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: vidya_l (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 503 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.28ms] Passed 4 tests

This is a short check of server-side resources used by WP Super Team
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1237.36 ▼1.69
Dashboard /wp-admin3.42 ▲0.1146.99 ▼3.94
Posts /wp-admin/edit.php3.53 ▲0.1847.41 ▼2.50
Add New Post /wp-admin/post-new.php6.06 ▲0.1884.92 ▼20.99
Media Library /wp-admin/upload.php3.34 ▲0.1135.23 ▼1.19
Staffs /wp-admin/edit.php?post_type=wp_super_team3.3843.00
Add New Staff /wp-admin/post-new.php?post_type=wp_super_team6.0581.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Super Team
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.20 ▼1.411.69 ▲0.0539.65 ▼1.02
Dashboard /wp-admin2,237 ▲524.84 ▼1.06101.73 ▼4.5842.01 ▲0.25
Posts /wp-admin/edit.php2,120 ▲282.02 ▼0.0339.72 ▼0.1835.34 ▲0.21
Add New Post /wp-admin/post-new.php1,540 ▲1217.66 ▼0.41674.19 ▲56.6976.20 ▲31.41
Media Library /wp-admin/upload.php1,413 ▲254.21 ▼0.09104.26 ▲1.0642.85 ▼1.77
Staffs /wp-admin/edit.php?post_type=wp_super_team1,1081.9332.5228.44
Options /wp-admin/super-team-options.php?post_type=wp_super_team260.440.2414.00
Add New Staff /wp-admin/post-new.php?post_type=wp_super_team6,52724.42893.0041.81

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/super-team-options.php?post_type=wp_super_team
    • > Network (severe)
    wp-admin/super-team-options.php?post_type=wp_super_team - Failed to load resource: the server responded with a status of 404 (Not 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 require attention: You can take inspiration from this readme.txt

wp-super-team/super-team.php 85% from 13 tests

This is the main PHP file of "WP Super Team" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-super-team.php" instead of "super-team.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,662 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS30122,834
SVG100504
PHP14120300
JavaScript15024

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default-user.png44.17KB31.61KB▼ 28.44%