58% admin-todotastic

Code Review | Admin Todotastic

WordPress plugin Admin Todotastic scored 58% from 54 tests.

About plugin

  • Plugin page: admin-todotastic
  • Plugin version: 1.0
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 3, 2021
  • Latest release: Sep 3, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: brickdots (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 367 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼19.59ms] Passed 4 tests

A check of server-side resources used by Admin Todotastic
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3124.25 ▼19.45
Dashboard /wp-admin3.49 ▲0.1930.06 ▼19.89
Posts /wp-admin/edit.php3.63 ▲0.2736.29 ▼12.69
Add New Post /wp-admin/post-new.php5.78 ▼0.1174.44 ▼26.32
Media Library /wp-admin/upload.php3.49 ▲0.2729.94 ▼2.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2,488 new files
Database: 3 new tables, 7 new options
New tables
wp_bdotstd_todo_mentions
wp_bdotstd_todo_statuses
wp_bdotstd_todos
New WordPress options
theysaidso_admin_options
bdotstd_db_version
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Admin Todotastic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,220 ▲48517.10 ▲2.729.72 ▲7.7729.67 ▼22.76
Dashboard /wp-admin2,473 ▲2856.74 ▲1.71140.00 ▲25.9247.44 ▲1.10
Posts /wp-admin/edit.php2,261 ▲1724.01 ▲1.9668.50 ▲32.3139.58 ▲2.98
Add New Post /wp-admin/post-new.php6,673 ▲5,13927.67 ▲4.72937.22 ▲264.3853.17 ▲0.71
Media Library /wp-admin/upload.php1,624 ▲2365.72 ▲1.50115.26 ▲7.3247.36 ▼0.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 3 tables in the database
    • wp_bdotstd_todo_mentions
    • wp_bdotstd_todo_statuses
    • wp_bdotstd_todos
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • bdotstd_db_version
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 29× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/admin-todotastic/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
    • > /wp-content/plugins/admin-todotastic/inc/base/others/fallback-wp-version.php
    • > /wp-content/plugins/admin-todotastic/index.php
    • > /wp-content/plugins/admin-todotastic/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
    • > /wp-content/plugins/admin-todotastic/vendor/wpnotes/utils/src/Core.php
    • > /wp-content/plugins/admin-todotastic/inc/view/metabox/Metabox.php
    • > /wp-content/plugins/admin-todotastic/vendor/wpnotes/utils/src/Localization.php
    • > /wp-content/plugins/admin-todotastic/vendor/illuminate/pagination/resources/views/simple-default.blade.php
    • > /wp-content/plugins/admin-todotastic/inc/view/dashboard/Board.php
    • > /wp-content/plugins/admin-todotastic/vendor/wpnotes/utils/src/Assets.php
  • 885× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/admin-todotastic/vendor/fzaninotto/faker/src/Faker/Provider/hy_AM/PhoneNumber.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/admin-todotastic/vendor/symfony/translation/Exception/ProviderExceptionInterface.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/admin-todotastic/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Faker\\Provider\\Person' not found in wp-content/plugins/admin-todotastic/vendor/fzaninotto/faker/src/Faker/Provider/es_PE/Person.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\Relation' not found in wp-content/plugins/admin-todotastic/vendor/illuminate/database/Eloquent/Relations/HasOneOrMany.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Migrations\\Migration' not found in wp-content/plugins/admin-todotastic/vendor/jgrossi/corcel/tests/database/migrations/2017_07_05_181800_create_corcel_terms_table.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Doctrine\\Inflector\\GenericLanguageInflectorFactory' not found in wp-content/plugins/admin-todotastic/vendor/doctrine/inflector/lib/Doctrine/Inflector/Rules/English/InflectorFactory.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Fluent' not found in wp-content/plugins/admin-todotastic/vendor/illuminate/database/Schema/ColumnDefinition.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Faker\\Provider\\PhoneNumber' not found in wp-content/plugins/admin-todotastic/vendor/fzaninotto/faker/src/Faker/Provider/ru_RU/PhoneNumber.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\MorphOneOrMany' not found in wp-content/plugins/admin-todotastic/vendor/illuminate/database/Eloquent/Relations/MorphOne.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: todo, project management, task, collaboration, woocommerce

admin-todotastic/index.php 92% from 13 tests

Analyzing the main PHP file in "Admin Todotastic" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("admin-todotastic.php" instead of "index.php")

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/admin-todotastic/vendor/nesbot/carbon/bin/carbon.bat
198,886 lines of code in 2,144 files:
LanguageFilesBlank linesComment linesLines of code
PHP2,05237,92370,478182,512
Markdown303,11409,784
JSON30003,069
XSD392482,803
JavaScript11067271
Blade61721240
reStructuredText1747874
XML36164
PO File13536
YAML13413
make12011
DOS Batch1004
CSS34103
Dockerfile1102

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 140)
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.13
▷ Minimum class complexity1.00
▷ Maximum class complexity298.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity140.00
Code structure
Namespaces237
Interfaces144
Traits84
Classes1,103
▷ Abstract classes353.17%
▷ Concrete classes1,06896.83%
▷ Final classes787.30%
Methods8,407
▷ Static methods1,51117.97%
▷ Public methods6,90682.15%
▷ Protected methods1,22814.61%
▷ Private methods2733.25%
Functions972
▷ Named functions12212.55%
▷ Anonymous functions85087.45%
Constants246
▷ Global constants3614.63%
▷ Class constants21085.37%
▷ Public constants20296.19%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin