83% centangle-team

Code Review | Centangle-Team

WordPress plugin Centangle-Team scored83%from 54 tests.

About plugin

  • Plugin page: centangle-team
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2019
  • Latest release: Oct 11, 2019
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: centangle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /473 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.63ms] Passed 4 tests

A check of server-side resources used by Centangle-Team
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.58 ▲1.72
Dashboard /wp-admin3.41 ▲0.0745.61 ▼11.29
Posts /wp-admin/edit.php3.53 ▲0.1746.43 ▼1.67
Add New Post /wp-admin/post-new.php6.02 ▲0.1389.27 ▼15.29
Media Library /wp-admin/upload.php3.33 ▲0.1134.33 ▼2.27
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=team3.3337.95
Add New /wp-admin/post-new.php?post_type=team3.4450.22
Settings /wp-admin/edit.php?post_type=team&page=team_settings3.3131.91
CA Team /wp-admin/edit.php?post_type=team3.3937.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
category_children
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Centangle-Team
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23813.76 ▼0.636.84 ▲5.0785.47 ▲46.91
Dashboard /wp-admin2,268 ▲795.10 ▲0.10101.84 ▼17.1840.14 ▼7.00
Posts /wp-admin/edit.php2,159 ▲702.34 ▲0.3046.62 ▲5.8043.55 ▲7.04
Add New Post /wp-admin/post-new.php1,577 ▲5818.61 ▼4.47618.43 ▼72.8336.78 ▼14.56
Media Library /wp-admin/upload.php1,456 ▲684.53 ▲0.3096.57 ▼5.8044.11 ▼1.63
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=team1,5162.0834.5731.99
Add New /wp-admin/post-new.php?post_type=team2,3724.3268.8843.46
Settings /wp-admin/edit.php?post_type=team&page=team_settings1,7332.6556.5426.90
CA Team /wp-admin/edit.php?post_type=team1,2092.2735.2028.97

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/centangle-team/layouts/detail_layout.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/centangle-team/layouts/page_member.php:2
    • > PHP Notice
      Undefined variable: cai_shortcode_options in wp-content/plugins/centangle-team/displayteam.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/centangle-team/inc_/cai_setting.php:3
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/centangle-team/displayteam.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/centangle-team/inc_/cai_metabox.php:2
    • > PHP Notice
      Undefined variable: cai_shortcode_options in wp-content/plugins/centangle-team/layouts/detail_layout.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/centangle-team/layouts/detail_layout.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/centangle-team/displayteam.php:5

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)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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:
  • Screenshots: These screenshots do not have images: #1 (Settings), #2 (Member info fields), #3 (Layout)
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
You can take inspiration from this readme.txt

centangle-team/Centangle-Team-Showcase.php 77% from 13 tests

The main file in "Centangle-Team" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("centangle-team.php" instead of "Centangle-Team-Showcase.php")

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
No dangerous file extensions were detected1,352 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP74433703
CSS33812576
JavaScript37373

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions22
▷ Named functions1986.36%
▷ Anonymous functions313.64%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin