94% tuxx

Code Review | Tuxx

WordPress plugin Tuxx scored 94% from 54 tests.

About plugin

  • Plugin page: tuxx
  • Plugin version: 1.0.4
  • PHP compatiblity: 3.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.0
  • WordPress version: 5.8.1
  • First release: Dec 28, 2018
  • Latest release: Jan 14, 2019
  • Number of updates: 15
  • Update frequency: every 1.8 days
  • Top authors: tuxxbusinessinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 540 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼160.13ms] Passed 4 tests

Server-side resources used by Tuxx
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0331.81 ▼2.57
Dashboard /wp-admin3.09 ▲0.0347.55 ▼1.45
Posts /wp-admin/edit.php3.14 ▲0.0343.54 ▼4.22
Add New Post /wp-admin/post-new.php5.45 ▲0.0189.95 ▼632.27
Media Library /wp-admin/upload.php3.03 ▲0.0332.86 ▲0.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Tuxx: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.79 ▲0.2410.20 ▲0.0946.89 ▼8.33
Dashboard /wp-admin2,992 ▲556.11 ▲0.02146.70 ▼8.66105.71 ▼1.54
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0065.76 ▼5.4688.44 ▲1.81
Add New Post /wp-admin/post-new.php1,500 ▼18318.49 ▼0.24387.74 ▼7.16107.73 ▲1.07
Media Library /wp-admin/upload.php1,810 ▲35.05 ▲0.02153.29 ▲0.60111.82 ▼1.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/tuxx/tuxx-wordpress.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: calendar, holidays, embed

tuxx/tuxx-wordpress.php 92% from 13 tests

The principal PHP file in "Tuxx" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("tuxx.php" instead of "tuxx-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11912112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods660.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin