68% tidekey

Code Review | Tidekey

WordPress plugin Tidekey scored 68% from 54 tests.

About plugin

  • Plugin page: tidekey
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-3.4
  • WordPress version: 6.3.1
  • First release: Nov 4, 2015
  • Latest release: Nov 6, 2015
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: makong (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 970 total downloads

Benchmarks

Plugin footprint 65% 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.89MB] [CPU: ▼38.75ms] Passed 4 tests

This is a short check of server-side resources used by Tidekey
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0223.07 ▼19.66
Dashboard /wp-admin3.05 ▼0.2524.62 ▼34.26
Posts /wp-admin/edit.php3.05 ▼0.3124.40 ▼22.24
Add New Post /wp-admin/post-new.php3.05 ▼2.8424.40 ▼78.84
Media Library /wp-admin/upload.php3.05 ▼0.1824.59 ▼9.66
Tidekey /wp-admin/options-general.php?page=tidekey3.0519.92

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tidekey
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.24 ▼1.161.60 ▼0.3038.16 ▼10.76
Dashboard /wp-admin2,212 ▲275.94 ▲1.03110.63 ▲5.0642.12 ▼1.33
Posts /wp-admin/edit.php2,095 ▲62.04 ▼0.0133.69 ▼0.2332.20 ▼1.49
Add New Post /wp-admin/post-new.php1,519 ▼2323.23 ▲5.09628.88 ▲23.9451.74 ▼5.46
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.0097.23 ▼3.3141.16 ▼1.46
Tidekey /wp-admin/options-general.php?page=tidekey9172.0326.3031.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 9 options
    • db_upgraded
    • tidekey_templates
    • tidekey_options
    • widget_recent-posts
    • tidekey_titles
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > Warning in wp-content/plugins/tidekey/tidekey.php+71
    array_map(): Expected parameter 2 to be an array, bool given
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > Warning in wp-content/plugins/tidekey/tidekey.php+72
    Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > Notice in wp-content/plugins/tidekey/tidekey.php+104
    Undefined index: wpml
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > Notice in wp-content/plugins/tidekey/tidekey.php+97
    Undefined index: ind
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tidekey
    • > Notice in wp-content/plugins/tidekey/tidekey.php+97
    Trying to access array offset on value of type null

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 take a closer look at the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/tidekey/template.php:4
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/tidekey/template.php on line 1
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/tidekey/template.php on line 3
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/tidekey/tidekey.php on line 13
    • > PHP Notice
      Undefined variable: tab in wp-content/plugins/tidekey/template.php on line 1
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/tidekey/tidekey.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tidekey/tidekey.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: custom, description, meta, seo, tags...

tidekey/tidekey.php Passed 13 tests

The primary PHP file in "Tidekey" version 1.1 is used by WordPress to initiate all plugin functionality
46 characters long description:
Custom meta tags(title, description, keywords)

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 detected470 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23616391
CSS15079

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected