78% taro-series

Code Review | Taro Series

WordPress plugin Taro Series scored78%from 54 tests.

About plugin

  • Plugin page: taro-series
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.8
  • WordPress version: 6.3.1
  • First release: Oct 21, 2021
  • Latest release: Nov 9, 2021
  • Number of updates: 4
  • Update frequency: every 4.8 days
  • Top authors: Tarosky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /371 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼0.22ms] Passed 4 tests

A check of server-side resources used by Taro Series
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4743.75 ▼0.19
Dashboard /wp-admin3.76 ▲0.4551.99 ▼2.47
Posts /wp-admin/edit.php3.81 ▲0.4553.68 ▼0.89
Add New Post /wp-admin/post-new.php6.42 ▲0.53101.09 ▲8.63
Media Library /wp-admin/upload.php3.68 ▲0.4538.03 ▲2.68
Series /wp-admin/edit.php?post_type=series3.7240.97
Add New /wp-admin/post-new.php?post_type=series6.4185.69

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Taro Series
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.69 ▲0.401.77 ▼0.5746.92 ▲2.48
Dashboard /wp-admin2,222 ▲425.59 ▼0.2795.64 ▼3.5243.59 ▼5.15
Posts /wp-admin/edit.php2,127 ▲271.95 ▼0.0641.41 ▲2.7635.52 ▼1.27
Add New Post /wp-admin/post-new.php6,218 ▲4,69218.92 ▼4.63908.30 ▲213.3664.32 ▲13.09
Media Library /wp-admin/upload.php1,427 ▲334.19 ▼0.04104.29 ▲1.6045.97 ▼4.10
Series /wp-admin/edit.php?post_type=series1,1101.9634.8229.89
Add New /wp-admin/post-new.php?post_type=series1,64117.05845.8431.55

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\DynamicBlockPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Blocks/TocBlock.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\Singleton' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Controller/Setting.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_queried_object_id() in wp-content/plugins/taro-series/template-parts/series/item.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\CustomizerPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Customizer/SeriesIndex.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\CustomizerPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Customizer/OrderBy.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\Singleton' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Bootstrap.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\CustomizerPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Customizer/StyleLoading.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\Singleton' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Pattern/RestApi.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\BlockPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Pattern/DynamicBlockPattern.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Tarosky\\Series\\Pattern\\CustomizerPattern' not found in wp-content/plugins/taro-series/src/Tarosky/Series/Customizer/Order.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/post-new.php?post_type=series
    • > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
    Button isDefault prop is deprecated since version 5.4 and will be removed in version 6.2. Please use variant=\"secondary\" instead.

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: posts, series, news

taro-series/taro-series.php 92% from 13 tests

The primary PHP file in "Taro Series" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Good job! No executable or dangerous file extensions detected2,703 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP363671,1731,907
JavaScript76446586
JSON400149
Sass111060
CSS1161

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.85
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes26
▷ Abstract classes519.23%
▷ Concrete classes2180.77%
▷ Final classes00.00%
Methods147
▷ Static methods2718.37%
▷ Public methods8457.14%
▷ Protected methods6141.50%
▷ Private methods21.36%
Functions40
▷ Named functions2767.50%
▷ Anonymous functions1332.50%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin