89% taro-lead-next

Code Review | Taro Lead Next

WordPress plugin Taro Lead Next scored 89% from 54 tests.

About plugin

  • Plugin page: taro-lead-next
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 4
  • Update frequency: every 2.0 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 321 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: ▼3.97ms] Passed 4 tests

Server-side resources used by Taro Lead Next
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.53 ▼2.40
Dashboard /wp-admin3.33 ▲0.0245.58 ▼9.59
Posts /wp-admin/edit.php3.38 ▲0.0247.46 ▲2.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.35 ▼6.89
Media Library /wp-admin/upload.php3.25 ▲0.0235.50 ▲3.13

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Taro Lead Next
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.80 ▲0.151.55 ▼0.5540.76 ▼2.50
Dashboard /wp-admin2,203 ▲155.83 ▲0.92106.01 ▼10.0635.80 ▼9.00
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0338.75 ▲4.3635.87 ▲0.34
Add New Post /wp-admin/post-new.php6,418 ▲4,87620.48 ▲2.13913.22 ▲290.4965.76 ▲15.92
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.07102.03 ▼2.2743.13 ▼0.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: series, posts, news

taro-lead-next/taro-lead-next.php 85% from 13 tests

"Taro Lead Next" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected313 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2129106
JSON20077
PHP194870
Sass211058
CSS2222

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin