94% double-t-software-webstore-toolbar

Code Review | Double T Software Webstore Toolbar

WordPress plugin Double T Software Webstore Toolbar scored 94% from 53 tests.

About plugin

  • Plugin page: double-t-software...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2
  • WordPress version: 5.8.1
  • First release: May 10, 2019
  • Latest release: May 20, 2019
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: doubletsoftware (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 263 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼315.28ms] Passed 4 tests

Server-side resources used by Double T Software Webstore Toolbar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.32 ▲1.82
Dashboard /wp-admin3.07 ▲0.0150.91 ▼3.36
Posts /wp-admin/edit.php3.12 ▲0.0142.80 ▼13.86
Add New Post /wp-admin/post-new.php5.43 ▼0.0093.81 ▼1,236.58
Media Library /wp-admin/upload.php3.01 ▲0.0031.61 ▼7.30
Double T Software Toolbar /wp-admin/options-general.php?page=double-t-software-webstore-toolbar2.9827.33

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Double T Software Webstore Toolbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.83 ▲0.167.24 ▼0.6449.86 ▲2.66
Dashboard /wp-admin2,957 ▲1075.95 ▲0.08130.54 ▼8.6598.39 ▼4.29
Posts /wp-admin/edit.php2,708 ▲22.69 ▼0.0059.29 ▼14.1879.81 ▼18.23
Add New Post /wp-admin/post-new.php1,856 ▲37518.81 ▲1.92369.57 ▲10.87112.75 ▲8.54
Media Library /wp-admin/upload.php1,777 ▲55.03 ▲0.02143.16 ▼11.35105.29 ▼8.26
Double T Software Toolbar /wp-admin/options-general.php?page=double-t-software-webstore-toolbar1,0172.0952.7365.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/double-t-software-webstore-toolbar/double-t-software.php:102

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: toolbar, web store, paypal, payment, shopping cart

double-t-software-webstore-toolbar/double-t-software.php 85% from 13 tests

Analyzing the main PHP file in "Double T Software Webstore Toolbar" version 1.0.0
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 143 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("double-t-software-webstore-toolbar.php" instead of "double-t-software.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121182

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.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 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin