93% teddyid-lite

Code Review | Teddy ID Lite

WordPress plugin Teddy ID Lite scored 93% from 54 tests.

About plugin

  • Plugin page: teddyid-lite
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 5.8.1
  • First release: Jul 17, 2015
  • Latest release: Sep 11, 2015
  • Number of updates: 4
  • Update frequency: every 14.3 days
  • Top authors: matrixplatform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 484 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Teddy ID Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.94 ▲13.36
Dashboard /wp-admin3.06 ▲0.0147.86 ▲3.55
Posts /wp-admin/edit.php3.11 ▲0.0146.31 ▼0.25
Add New Post /wp-admin/post-new.php5.43 ▼0.0192.83 ▼545.82
Media Library /wp-admin/upload.php3.00 ▲0.0036.02 ▲0.08

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Teddy ID Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,719 ▲12316.19 ▲0.758.88 ▼0.0747.79 ▲2.59
Dashboard /wp-admin2,967 ▲335.93 ▼0.16139.14 ▼1.90121.55 ▲19.60
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1365.50 ▲3.2786.33 ▼4.02
Add New Post /wp-admin/post-new.php1,498 ▼17418.86 ▼0.00363.58 ▼2.46108.76 ▼12.71
Media Library /wp-admin/upload.php1,807 ▼35.03 ▲0.01150.18 ▼1.01118.10 ▼2.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/teddyid-lite/teddyidlite.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: No descriptions were found for these screenshots #2, #3 in teddyid-lite/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

teddyid-lite/teddyidlite.php 85% from 13 tests

The principal PHP file in "Teddy ID Lite" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("teddyid-lite.php" instead of "teddyidlite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15911

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin