83% kento-top-authors

Code Review | Kento Top Author

WordPress plugin Kento Top Author scored83%from 54 tests.

About plugin

  • Plugin page: kento-top-authors
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 29, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 5
  • Update frequency: every 99.4 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,875 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
Installer ran successfully

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

This is a short check of server-side resources used by Kento Top Author
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.10 ▲0.05
Dashboard /wp-admin3.32 ▲0.0250.21 ▲0.19
Posts /wp-admin/edit.php3.37 ▲0.0151.00 ▼0.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.86 ▼7.74
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▲0.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kento Top Author
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.77 ▼0.665.56 ▲3.2142.09 ▼4.24
Dashboard /wp-admin2,206 ▲185.91 ▲1.09101.29 ▼16.6738.87 ▼1.43
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0141.98 ▲1.3935.91 ▼0.20
Add New Post /wp-admin/post-new.php1,533 ▼023.14 ▼0.22600.54 ▼114.2259.49 ▼0.29
Media Library /wp-admin/upload.php1,385 ▼34.27 ▲0.01103.39 ▲3.7042.05 ▼2.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/kento-top-authors/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-top-authors/index.php on line 13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Style 1.), #2 (Style 2.), #3 (Style 3.), #4 (Widget Settings.)
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

kento-top-authors/index.php 92% from 13 tests

The principal PHP file in "Kento Top Author" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kento-top-authors.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected128 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181876
CSS113952

PHP code Passed 2 tests

An short overview of 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.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png11.35KB4.45KB▼ 60.76%
screenshot-2.png16.98KB7.60KB▼ 55.24%
screenshot-1.png35.98KB9.76KB▼ 72.86%
screenshot-4.png12.58KB4.73KB▼ 62.41%