90% tc-perfect-tools

Code Review | TC Perfect Tools

WordPress plugin TC Perfect Tools scored 90% from 54 tests.

About plugin

  • Plugin page: tc-perfect-tools
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.8
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Feb 28, 2022
  • Number of updates: 5
  • Update frequency: every 43.0 days
  • Top authors: thomassquall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by TC Perfect Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.76 ▼10.48
Dashboard /wp-admin3.31 ▲0.0151.19 ▼0.64
Posts /wp-admin/edit.php3.36 ▲0.0151.31 ▼1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.27 ▲9.32
Media Library /wp-admin/upload.php3.23 ▲0.0137.41 ▼1.63

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TC Perfect Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.21 ▼0.251.89 ▼2.8945.68 ▲1.81
Dashboard /wp-admin2,203 ▼35.84 ▼0.07107.47 ▼1.3940.22 ▲3.34
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0537.29 ▲0.4731.29 ▼2.34
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.84602.87 ▼101.4069.27 ▲4.22
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0996.50 ▼13.7642.21 ▼3.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: tooltips, elementor, custom js, restricted content, tools

tc-perfect-tools/tc-perfect-tools.php Passed 13 tests

Analyzing the main PHP file in "TC Perfect Tools" version 1.0.2
61 characters long description:
Add useful tools to your Elementor and Elementor Pro plugins!

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 detected636 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP613597560
JavaScript114057
CSS13119

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity15.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods30
▷ Static methods26.67%
▷ Public methods2790.00%
▷ Protected methods310.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin