83% softtech-teachers-list

Code Review | ST Teachers List

WordPress plugin ST Teachers List scored 83% from 54 tests.

About plugin

  • Plugin page: softtech-teachers...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.3-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Aug 12, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: softtechit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 829 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼6.90ms] Passed 4 tests

This is a short check of server-side resources used by ST Teachers List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0442.22 ▼2.69
Dashboard /wp-admin3.33 ▲0.0345.62 ▼7.24
Posts /wp-admin/edit.php3.38 ▲0.0346.13 ▼5.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.17 ▼12.50
Media Library /wp-admin/upload.php3.25 ▲0.0333.80 ▲1.00
Teachers /wp-admin/edit.php?post_type=teachers3.3034.56
Add Teacher /wp-admin/post-new.php?post_type=teachers3.3746.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ST Teachers List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.23 ▼1.161.77 ▼0.0644.02 ▼5.33
Dashboard /wp-admin2,230 ▲425.82 ▲0.9695.75 ▼18.2239.37 ▼6.72
Posts /wp-admin/edit.php2,116 ▲272.03 ▲0.0537.64 ▲0.0832.21 ▼3.95
Add New Post /wp-admin/post-new.php1,565 ▲4618.31 ▼5.21662.43 ▲14.0764.34 ▲0.61
Media Library /wp-admin/upload.php1,409 ▲214.25 ▲0.0796.44 ▼2.0945.42 ▲0.85
Teachers /wp-admin/edit.php?post_type=teachers1,0801.9631.5029.00
Add Teacher /wp-admin/post-new.php?post_type=teachers2,1697.52171.1861.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/softtech-teachers-list/teachers.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === softtech-teachers-list === )
The official readme.txt might help

softtech-teachers-list/teachers.php 92% from 13 tests

The main PHP file in "ST Teachers List" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("softtech-teachers-list.php" instead of "teachers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1221044
CSS14038

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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
No PNG files were detected