73% kento-team

Code Review | Kento Team

WordPress plugin Kento Team scored73%from 54 tests.

About plugin

  • Plugin page: kento-team
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 7
  • Update frequency: every 72.3 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,806 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.97MB] [CPU: ▼57.43ms] Passed 4 tests

A check of server-side resources used by Kento Team
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.30 ▼36.03
Dashboard /wp-admin2.05 ▼1.306.60 ▼52.92
Posts /wp-admin/edit.php2.05 ▼1.316.76 ▼39.98
Add New Post /wp-admin/post-new.php2.05 ▼3.845.06 ▼100.80
Media Library /wp-admin/upload.php2.05 ▼1.184.49 ▼29.73

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Kento Team
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.07 ▼0.281.73 ▲0.2347.02 ▲8.02
Dashboard /wp-admin2,197 ▲235.47 ▼0.2187.99 ▲3.0743.31 ▼0.02
Posts /wp-admin/edit.php2,102 ▲22.02 ▲0.0235.51 ▲0.2333.37 ▼0.16
Add New Post /wp-admin/post-new.php1,528 ▲223.28 ▲0.18648.28 ▼49.9453.73 ▼5.04
Media Library /wp-admin/upload.php1,402 ▲24.16 ▼0.0194.04 ▼23.2044.07 ▼8.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the kento-team-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • 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 short smoke test looking 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-team/index.php:13
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/kento-team/index.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Style 1), #2 (Style 2), #3 (Style 3), #4 (Style 4)
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

kento-team/index.php 92% from 13 tests

The entry point to "Kento Team" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kento-team.php" instead of "index.php")

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 plugin238 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS1314179
PHP1301159

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png108.70KB41.24KB▼ 62.06%
screenshot-1.png114.20KB44.77KB▼ 60.80%
css/social-icon.png14.06KB4.49KB▼ 68.07%
screenshot-4.png40.11KB15.18KB▼ 62.16%
screenshot-3.png34.80KB13.16KB▼ 62.18%