88% twoo-performant

Code Review | TWoo Performant

WordPress plugin TWoo Performant scored 88% from 54 tests.

About plugin

  • Plugin page: twoo-performant
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 28, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: tetele (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,536 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼288.75ms] Passed 4 tests

Analyzing server-side resources used by TWoo Performant
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0176.96 ▲23.57
Dashboard /wp-admin3.41 ▲0.0133.56 ▼3.22
Posts /wp-admin/edit.php3.65 ▲0.0139.50 ▼0.42
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.62 ▼1,152.62
Media Library /wp-admin/upload.php3.30 ▲0.0126.36 ▲1.28

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

TWoo Performant: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6114.70 ▼1.056.93 ▲0.792.28 ▼0.50
Dashboard /wp-admin2,885 ▲246.20 ▲0.02127.07 ▼9.58170.68 ▼6.14
Posts /wp-admin/edit.php2,685 ▲283.25 ▲0.0164.04 ▼3.38147.70 ▲2.34
Add New Post /wp-admin/post-new.php1,692 ▲220.68 ▼0.87511.07 ▲65.77177.69 ▲3.61
Media Library /wp-admin/upload.php1,695 ▼35.49 ▲0.01147.90 ▼30.51222.16 ▲29.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/twoo-performant/plugin.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/twoo-performant/integration.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: Version format is invalid
You can take inspiration from this readme.txt

twoo-performant/plugin.php 92% from 13 tests

"TWoo Performant" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("twoo-performant.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22912116

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.50
▷ Minimum class complexity2.00
▷ Maximum class complexity9.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin