84% hello-obi-wan

Code Review | Hello Obi-Wan

WordPress plugin Hello Obi-Wan scored84%from 54 tests.

About plugin

  • Plugin page: hello-obi-wan
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.4
  • WordPress version: 6.3.1
  • First release: Dec 8, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 9
  • Update frequency: every 0.8 days
  • Top authors: kloptikus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Hello Obi-Wan
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0143.08 ▲3.29
Dashboard /wp-admin3.35 ▲0.0149.74 ▼4.32
Posts /wp-admin/edit.php3.41 ▲0.0158.17 ▲5.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0187.97 ▼14.02
Media Library /wp-admin/upload.php3.28 ▲0.0136.88 ▼4.99

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Hello Obi-Wan
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.22 ▼0.331.68 ▲0.0640.21 ▼2.75
Dashboard /wp-admin2,200 ▲205.52 ▼0.0882.49 ▼2.8142.39 ▼4.24
Posts /wp-admin/edit.php2,108 ▲82.03 ▲0.0841.67 ▲1.8140.89 ▲3.04
Add New Post /wp-admin/post-new.php1,601 ▲6622.34 ▲4.16672.73 ▲14.4841.76 ▼23.74
Media Library /wp-admin/upload.php1,408 ▲54.26 ▲0.0595.21 ▼11.1741.28 ▲0.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hello-obi-wan/hello-obi-wan.php:70

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: humor, obi-wan kenobi, jedi, hello, star wars...

hello-obi-wan/hello-obi-wan.php 92% from 13 tests

"Hello Obi-Wan" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 446 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192063

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin