10% dansnet-meta-tag

Code Review | Dansnet Meta Tag

WordPress plugin Dansnet Meta Tag scored 10% from 54 tests.

About plugin

  • Plugin page: dansnet-meta-tag
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.1.1
  • WordPress version: 5.8.1
  • First release: Mar 23, 2015
  • Latest release: Mar 23, 2015
  • Number of updates: 26
  • Update frequency: every 0.1 days
  • Top authors: dansnet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,206 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/dansnet-meta-tag/index.php+28
    Use of undefined constant DANSNET_DMT_DIR - assumed 'DANSNET_DMT_DIR' (this will throw an Error in a future version of PHP)

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

Server-side resources used by Dansnet Meta Tag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0024.47 ▲2.16
Dashboard /wp-admin3.06 ▲0.0031.79 ▲0.05
Posts /wp-admin/edit.php3.11 ▼0.0129.89 ▼7.37
Add New Post /wp-admin/post-new.php5.42 ▼0.0270.57 ▼708.60
Media Library /wp-admin/upload.php3.00 ▲0.0023.03 ▲1.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Dansnet Meta Tag
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲1615.98 ▲0.247.36 ▲0.5476.63 ▲1.14
Dashboard /wp-admin2,930 ▲346.15 ▼0.01121.35 ▼9.40175.77 ▲2.09
Posts /wp-admin/edit.php2,743 ▲33.23 ▼0.0162.53 ▼2.24135.43 ▼3.74
Add New Post /wp-admin/post-new.php3,735 ▲3118.68 ▲0.21441.32 ▼26.84164.49 ▲1.88
Media Library /wp-admin/upload.php1,752 ▼05.57 ▲0.07139.66 ▼4.96184.27 ▼2.91

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
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dansnet-meta-tag/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/dansnet-meta-tag/Settings.php on line 222

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: search engine, google, tags, meta

dansnet-meta-tag/index.php 92% from 13 tests

"Dansnet Meta Tag" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dansnet-meta-tag.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23846175

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.39
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.75
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin