84% ootinimaps-tooltips

Code Review | OotiniMaps Tooltips

WordPress plugin OotiniMaps Tooltips scored84%from 54 tests.

About plugin

  • Plugin page: ootinimaps-tooltips
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Jan 23, 2022
  • Number of updates: 14
  • Update frequency: every 237.0 days
  • Top authors: jasoneth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,257 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼2.35MB] [CPU: ▼453,999.48ms] Passed 4 tests

A check of server-side resources used by OotiniMaps Tooltips
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▼9.3740.74 ▼1,815,955.03
Dashboard /wp-admin3.35 ▼0.0350.66 ▼16.22
Posts /wp-admin/edit.php3.40 ▲0.0050.94 ▼4.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0091.29 ▼22.43
Media Library /wp-admin/upload.php3.27 ▲0.0038.03 ▲0.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

OotiniMaps Tooltips: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.55 ▼0.9814.08 ▲12.4944.36 ▲3.39
Dashboard /wp-admin2,192 ▲175.51 ▼0.1281.11 ▼21.2238.40 ▼3.63
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0239.66 ▼3.1133.12 ▼2.18
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▲0.18678.65 ▼3.1352.56 ▼14.83
Media Library /wp-admin/upload.php1,400 ▲94.16 ▼0.06100.31 ▼0.1541.61 ▼6.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ootinimaps-tooltips/ootinimaps-tooltips.php:47

User-side errors Passed 1 test

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

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
6 plugin tags: old republic, swtor, star wars, star wars the old republic, galaxy map...

ootinimaps-tooltips/ootinimaps-tooltips.php Passed 13 tests

"OotiniMaps Tooltips" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Allows pop-up tooltips to be shown for links to OotiniMaps locations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112830

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin