78% td-admin-lock-load

Code Review | TD Admin Lock & Load

WordPress plugin TD Admin Lock & Load scored78%from 54 tests.

About plugin

  • Plugin page: td-admin-lock-load
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: Feb 26, 2014
  • Number of updates: 8
  • Update frequency: every 3.9 days
  • Top authors: transcendev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by TD Admin Lock & Load
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.13 ▼0.04
Dashboard /wp-admin3.31 ▲0.0146.98 ▼0.96
Posts /wp-admin/edit.php3.36 ▲0.0145.01 ▼3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.27 ▼13.19
Media Library /wp-admin/upload.php3.23 ▲0.0138.64 ▲6.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
td_al_db_version
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by TD Admin Lock & Load
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.54 ▼0.721.76 ▼0.0238.30 ▼3.28
Dashboard /wp-admin2,207 ▲195.84 ▲0.7995.41 ▼21.3640.14 ▼5.55
Posts /wp-admin/edit.php2,090 ▲12.03 ▼0.0636.56 ▼4.7830.37 ▼3.70
Add New Post /wp-admin/post-new.php1,414 ▼12817.81 ▼0.39615.01 ▼0.0064.06 ▲13.64
Media Library /wp-admin/upload.php1,395 ▲74.17 ▼0.1495.22 ▼6.0741.98 ▼1.79
TD Admin Lock & Load /wp-admin/td-admin-lock.php260.440.0914.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • td_al_db_version
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | 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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/td-admin-lock-load/td-admin-lock.php:30

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/td-admin-lock.php
    • > Network (severe)
    wp-admin/td-admin-lock.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === td-admin-lock-load === )
The official readme.txt is a good inspiration

td-admin-lock-load/td-admin-lock.php 92% from 13 tests

The main file in "TD Admin Lock & Load" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("td-admin-lock-load.php" instead of "td-admin-lock.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin131 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12428131

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin