78% semantic-tags

Code Review | Semantic Tags

WordPress plugin Semantic Tags scored78%from 54 tests.

About plugin

  • Plugin page: semantic-tags
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: May 21, 2014
  • Number of updates: 31
  • Update frequency: every 5.7 days
  • Top authors: mediapoint (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,322 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.07ms] Passed 4 tests

An overview of server-side resources used by Semantic Tags
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.60 ▲6.77
Dashboard /wp-admin3.35 ▲0.0549.02 ▼0.57
Posts /wp-admin/edit.php3.47 ▲0.1146.43 ▼0.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.33 ▼11.43
Media Library /wp-admin/upload.php3.28 ▲0.0532.70 ▼0.10
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags&post_type=attachment3.2732.57
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags3.2732.69
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags&post_type=page3.2730.59
Semantic Tags /wp-admin/options-general.php?page=semantictags_plugin3.2731.85

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_semantictags_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Semantic Tags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲7314.35 ▲0.002.05 ▲0.0643.77 ▼2.78
Dashboard /wp-admin2,216 ▲365.58 ▼0.0894.19 ▼3.2843.02 ▲1.08
Posts /wp-admin/edit.php2,166 ▲631.98 ▲0.0434.59 ▼0.3931.56 ▼5.39
Add New Post /wp-admin/post-new.php1,540 ▲1423.42 ▼0.17648.20 ▼21.4960.34 ▲3.11
Media Library /wp-admin/upload.php1,418 ▲214.17 ▲0.0193.71 ▼9.8841.55 ▼5.19
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags&post_type=attachment1,3882.2626.3231.58
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags1,3912.2927.0331.36
SemanticTags /wp-admin/edit-tags.php?taxonomy=semantictags&post_type=page1,3882.2927.4132.87
Semantic Tags /wp-admin/options-general.php?page=semantictags_plugin8201.9922.6025.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_semantictags_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/semantic-tags/templates/settings.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/semantic-tags/classes/ST_Widget.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/semantic-tags/classes/ST_Widget.php:3

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 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot of the edit page.) image not found
Please take inspiration from this readme.txt

semantic-tags/Semantic-Tags.php 92% from 13 tests

"Semantic Tags" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("semantic-tags.php" instead of "Semantic-Tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected706 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP5204128628
Markdown136063
CSS24015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity20.25
▷ Minimum class complexity2.00
▷ Maximum class complexity50.00
Average method complexity3.66
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods1448.28%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin