84% wp-wiki-tooltip

Code Review | WP Wiki Tooltip

WordPress plugin WP Wiki Tooltip scored84%from 54 tests.

About plugin

  • Plugin page: wp-wiki-tooltip
  • Plugin version: 1.10.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2015
  • Latest release: Dec 23, 2022
  • Number of updates: 45
  • Update frequency: every 60.0 days
  • Top authors: nida78 (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

400+ active /11,706 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
Installer ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼1.93ms] Passed 4 tests

Server-side resources used by WP Wiki Tooltip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2852.34 ▲14.41
Dashboard /wp-admin3.63 ▲0.3348.81 ▲1.15
Posts /wp-admin/edit.php3.74 ▲0.3955.96 ▲6.66
Add New Post /wp-admin/post-new.php5.76 ▼0.1369.50 ▼20.29
Media Library /wp-admin/upload.php3.55 ▲0.3242.93 ▲4.75
Thumbnail /wp-admin/admin.php?page=wp-wiki-tooltip-settings-thumb3.5235.93
Wiki Tooltips /wp-admin/options-general.php?page=wp-wiki-tooltip-settings3.5232.87
Error Handling /wp-admin/admin.php?page=wp-wiki-tooltip-settings-error3.5233.98
Design /wp-admin/admin.php?page=wp-wiki-tooltip-settings-design3.5236.95

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Wiki Tooltip
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲17813.77 ▼0.999.79 ▲8.1942.39 ▼3.38
Dashboard /wp-admin2,228 ▲405.91 ▲0.0697.64 ▼4.3338.48 ▼2.09
Posts /wp-admin/edit.php2,117 ▲282.05 ▼0.0139.77 ▼0.8233.87 ▼3.91
Add New Post /wp-admin/post-new.php1,542 ▲917.65 ▼5.66682.93 ▼1.3354.08 ▲4.53
Media Library /wp-admin/upload.php1,410 ▲224.13 ▼0.0398.39 ▼2.1942.75 ▼2.66
Thumbnail /wp-admin/admin.php?page=wp-wiki-tooltip-settings-thumb8941.7423.5433.92
Wiki Tooltips /wp-admin/options-general.php?page=wp-wiki-tooltip-settings1,0311.7425.9235.12
Error Handling /wp-admin/admin.php?page=wp-wiki-tooltip-settings-error8901.7424.8828.30
Design /wp-admin/admin.php?page=wp-wiki-tooltip-settings-design1,0652.3434.6047.07

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-wiki-tooltip/wp-wiki-tooltip.php:19

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 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
6 plugin tags: mediawiki, tooltipster, wiki, shortcode, tooltip...

wp-wiki-tooltip/wp-wiki-tooltip.php 92% from 13 tests

The primary PHP file in "WP Wiki Tooltip" version 1.10.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 262 characters long)

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
Success! There were no dangerous files found in this plugin7,619 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,4262,2114,552
PHP8260721,202
PO File2334483867
CSS1212176623
Markdown31060295
JSON30080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.60
▷ Minimum class complexity5.00
▷ Maximum class complexity87.00
Average method complexity3.51
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods53
▷ Static methods00.00%
▷ Public methods5196.23%
▷ Protected methods11.89%
▷ Private methods11.89%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin