78% tech-radar

Code Review | Tech Radar

WordPress plugin Tech Radar scored78%from 54 tests.

About plugin

  • Plugin page: tech-radar
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 6, 2020
  • Latest release: Oct 6, 2020
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: nwinnubst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /397 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.45ms] Passed 4 tests

A check of server-side resources used by Tech Radar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.35 ▼2.41
Dashboard /wp-admin3.35 ▲0.0444.97 ▼6.46
Posts /wp-admin/edit.php3.40 ▲0.0449.10 ▲5.05
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.87 ▼5.86
Media Library /wp-admin/upload.php3.27 ▲0.0434.58 ▼3.07
Tech Radar /wp-admin/options-general.php?page=tech_radar3.2230.46

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Tech Radar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲16413.99 ▼0.434.87 ▲2.7739.52 ▼6.21
Dashboard /wp-admin2,228 ▲405.79 ▲0.7595.89 ▼19.8337.06 ▼11.89
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0337.84 ▲0.8638.36 ▲4.84
Add New Post /wp-admin/post-new.php1,533 ▼523.39 ▲0.22664.67 ▼15.8962.68 ▼7.01
Media Library /wp-admin/upload.php1,407 ▲194.20 ▼0.0396.36 ▼4.4041.37 ▼3.57
Tech Radar /wp-admin/options-general.php?page=tech_radar9452.0227.3230.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=tech_radar
    • > Warning in wp-content/plugins/tech-radar/index.php+148
    Invalid argument supplied for foreach()

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 fix the following items
  • 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/tech-radar/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("-")
  • Screenshots: No descriptions were found for these screenshots #1, #2 in tech-radar/assets to your readme.txt
The official readme.txt might help

tech-radar/index.php 92% from 13 tests

"Tech Radar" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tech-radar.php" instead of "index.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 plugin658 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS210382
PHP13825257
JavaScript10019

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin