84% wp-our-team

Code Review | WP Our Team

WordPress plugin WP Our Team scored84%from 54 tests.

About plugin

  • Plugin page: wp-our-team
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Mar 27, 2016
  • Number of updates: 38
  • Update frequency: every 0.3 days
  • Top authors: themeidol (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active /3,756 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.05ms] Passed 4 tests

An overview of server-side resources used by WP Our Team
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.66 ▲1.96
Dashboard /wp-admin3.34 ▼0.0147.70 ▼8.71
Posts /wp-admin/edit.php3.39 ▲0.0345.03 ▼2.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.09 ▼16.24
Media Library /wp-admin/upload.php3.26 ▲0.0332.49 ▼0.41
Add Member /wp-admin/post-new.php?post_type=team3.3143.58
Team /wp-admin/edit.php?post_type=team3.3035.62

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Our Team
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲15713.51 ▼0.789.20 ▲7.2842.30 ▲2.58
Dashboard /wp-admin2,218 ▲385.61 ▼0.0589.70 ▲4.9079.99 ▲38.97
Posts /wp-admin/edit.php2,126 ▲262.00 ▲0.0435.15 ▼1.8031.39 ▼4.93
Add New Post /wp-admin/post-new.php1,549 ▲2323.51 ▼0.17730.35 ▲26.7455.79 ▲2.89
Media Library /wp-admin/upload.php1,429 ▲294.23 ▲0.0494.14 ▼7.1373.88 ▲27.54
Add Member /wp-admin/post-new.php?post_type=team1,7493.5460.7787.59
Team /wp-admin/edit.php?post_type=team1,1032.0530.8530.79

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-our-team/WPOurteam.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: responsive team, our, member, team, social...

wp-our-team/WPOurteam.php 85% from 13 tests

The entry point to "WP Our Team" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-our-team.php" instead of "WPOurteam.php")
  • Description: The description should be shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,144 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS31152,182
SVG100655
PHP19837274
JavaScript23033

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods320.00%
▷ Public methods1386.67%
▷ Protected methods16.67%
▷ Private methods16.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/icon-team.png3.84KB1.27KB▼ 66.87%
assets/images/icon-team.png3.84KB1.27KB▼ 66.87%
assets/images/profile-pic.png5.36KB2.89KB▼ 46.13%