83% wp-typeit

Code Review | WP TypeIt Lite

WordPress plugin WP TypeIt Lite scored 83% from 54 tests.

About plugin

  • Plugin page: wp-typeit
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: May 28, 2020
  • Number of updates: 7
  • Update frequency: every 103.0 days
  • Top authors: alexmacarthur (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.92ms] Passed 4 tests

A check of server-side resources used by WP TypeIt Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.00 ▼5.38
Dashboard /wp-admin3.31 ▲0.0143.98 ▼6.98
Posts /wp-admin/edit.php3.36 ▲0.0149.25 ▲1.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.44 ▼9.08
Media Library /wp-admin/upload.php3.23 ▲0.0133.83 ▲2.83

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

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

Browser metrics Passed 4 tests

WP TypeIt Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.23 ▼1.191.74 ▲0.0340.90 ▼3.42
Dashboard /wp-admin2,209 ▲274.86 ▼0.0698.47 ▼18.5339.39 ▼7.94
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0338.99 ▲2.2940.83 ▲7.87
Add New Post /wp-admin/post-new.php1,531 ▲1723.32 ▲5.68630.13 ▼53.5449.14 ▼10.07
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.00100.42 ▼14.7041.75 ▼7.05

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 110× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/tests/Composer/Installers/Test/SiteDirectInstallerTest.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wp-typeit/vendor/composer/installers/tests/Composer/Installers/Test/MediaWikiInstallerTest.php:9

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Please add descriptions for these screenshots #1, #2 in wp-typeit/assets to your readme.txt
You can look at the official readme.txt

wp-typeit/typeit.php 92% from 13 tests

This is the main PHP file of "WP TypeIt Lite" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-typeit.php" instead of "typeit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,321 lines of code in 133 files:
LanguageFilesBlank linesComment linesLines of code
PHP1246108573,728
Markdown3530278
JSON300265
YAML27027
XML12023

PHP code Passed 2 tests

A brief analysis 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.19
Average class complexity2.36
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes113
▷ Abstract classes21.77%
▷ Concrete classes11198.23%
▷ Final classes00.00%
Methods176
▷ Static methods73.98%
▷ Public methods13375.57%
▷ Protected methods3620.45%
▷ Private methods73.98%
Functions14
▷ Named functions750.00%
▷ Anonymous functions750.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

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
No PNG files were detected