10% kento-latest-tabs

Code Review | Latest Tabs

WordPress plugin Latest Tabs scored10%from 54 tests.

About plugin

  • Plugin page: kento-latest-tabs
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.6
  • WordPress version: 6.3.1
  • First release: Dec 29, 2013
  • Latest release: May 21, 2018
  • Number of updates: 22
  • Update frequency: every 72.9 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /6,921 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/kento-latest-tabs/index.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; Kento_Latest_Tabs_Plugin has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼55.65ms] Passed 4 tests

This is a short check of server-side resources used by Latest Tabs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.70 ▼32.48
Dashboard /wp-admin2.16 ▼1.145.52 ▼51.62
Posts /wp-admin/edit.php2.16 ▼1.197.63 ▼43.26
Add New Post /wp-admin/post-new.php2.16 ▼3.726.32 ▼95.24
Media Library /wp-admin/upload.php2.16 ▼1.065.76 ▼29.56

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/kento-latest-tabs/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_kento-latest-tabs-widget
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Latest Tabs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲20013.78 ▼0.595.81 ▲4.0539.21 ▼0.56
Dashboard /wp-admin2,253 ▲465.16 ▲0.23106.97 ▼0.7138.85 ▼7.91
Posts /wp-admin/edit.php2,137 ▲372.31 ▲0.2740.75 ▲2.5838.25 ▲0.14
Add New Post /wp-admin/post-new.php1,553 ▲2223.22 ▲0.11607.93 ▼75.9933.99 ▼22.82
Media Library /wp-admin/upload.php1,438 ▲384.45 ▲0.27101.35 ▼14.4645.59 ▼4.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/kento-latest-tabs/index.php+34
    Methods with the same name as their class will not be constructors in a future version of PHP; Kento_Latest_Tabs_Plugin has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_kento-latest-tabs-widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kento-latest-tabs/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: latest comments, popular posts, jquery tabs, sidebar post tabs, sidebar tabs...

kento-latest-tabs/index.php 92% from 13 tests

This is the main PHP file of "Latest Tabs" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("kento-latest-tabs.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin561 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP25027329
CSS1921217
JavaScript21115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity11.00
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/no-thumb.png1.46KB0.78KB▼ 46.89%
css/images/separate.png15.46KB8.63KB▼ 44.18%
css/images/images.png4.68KB3.56KB▼ 23.95%