93% linktheme

Code Review | Thinktag Link Theme

WordPress plugin Thinktag Link Theme scored 93% from 54 tests.

About plugin

  • Plugin page: linktheme
  • Plugin version: 1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Oct 13, 2014
  • Latest release: Oct 13, 2014
  • Number of updates: 8
  • Update frequency: every 1.3 days
  • Top authors: wp-thinktag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 566 total downloads

Benchmarks

Plugin footprint Passed 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: ▼148.88ms] Passed 4 tests

A check of server-side resources used by Thinktag Link Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1440.82 ▲18.81
Dashboard /wp-admin3.07 ▲0.0159.45 ▼2.48
Posts /wp-admin/edit.php3.12 ▲0.0152.22 ▲1.65
Add New Post /wp-admin/post-new.php5.43 ▲0.00106.29 ▼580.14
Media Library /wp-admin/upload.php3.01 ▲0.0031.49 ▼14.54

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Thinktag Link Theme: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,863 ▲26717.42 ▲1.8519.92 ▲9.2646.25 ▼4.10
Dashboard /wp-admin2,967 ▲365.83 ▼0.14153.28 ▲9.90113.70 ▼11.66
Posts /wp-admin/edit.php2,739 ▲32.81 ▲0.1272.04 ▲1.3797.17 ▲2.52
Add New Post /wp-admin/post-new.php1,683 ▲18318.76 ▲0.18392.13 ▼1.67121.11 ▲4.04
Media Library /wp-admin/upload.php1,807 ▼35.02 ▼0.03156.80 ▼1.64130.50 ▼2.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please 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/linktheme/linktheme.php:76

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (See the youtube video https://www.youtube.com/watch?v=TJ0fU4ieK4U)
The official readme.txt is a good inspiration

linktheme/linktheme.php 85% from 13 tests

The main file in "Thinktag Link Theme" v. 1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin57 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP119954
JavaScript21472
CSS10111

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
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 functions3100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-prev.png6.10KB2.46KB▼ 59.59%
images/shadow-top-forward.png2.78KB0.56KB▼ 79.70%
images/arrow-next.png6.33KB2.55KB▼ 59.78%
images/shadow-top-back.png2.79KB0.56KB▼ 79.76%
images/shadow.png5.42KB3.93KB▼ 27.43%