84% tipi-components

Code Review | Tipi Components

WordPress plugin Tipi Components scored84%from 54 tests.

About plugin

  • Plugin page: tipi-components
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2017
  • Latest release: Feb 4, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: codetipi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /698 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.31ms] Passed 4 tests

An overview of server-side resources used by Tipi Components
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0946.26 ▲4.48
Dashboard /wp-admin3.39 ▲0.0545.16 ▼17.23
Posts /wp-admin/edit.php3.51 ▲0.1546.72 ▼6.48
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.20 ▼7.05
Media Library /wp-admin/upload.php3.32 ▲0.0935.84 ▲1.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tipi Components: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.69 ▲0.331.54 ▼0.0537.01 ▼2.84
Dashboard /wp-admin2,195 ▲215.51 ▼0.0781.48 ▼3.6638.16 ▼2.76
Posts /wp-admin/edit.php2,097 ▼62.01 ▼0.0233.99 ▼8.8134.37 ▼2.80
Add New Post /wp-admin/post-new.php1,530 ▲223.30 ▲0.34609.52 ▼87.7347.18 ▼4.84
Media Library /wp-admin/upload.php1,403 ▲64.37 ▲0.2095.92 ▼5.4042.93 ▼3.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tipi-components/admin/inner/tipi-components-columns.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: responsive columns, modern buttons, shortcodes, modern dropcaps, divider

tipi-components/tipi-components.php 85% from 13 tests

"Tipi Components" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.7")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,553 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP10123264462
CSS58468443
Sass7637396
JavaScript1294122
PO File14351105
SVG10013
Markdown13012

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.15
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
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
There are no PNG files in this plugin