78% startbox-easy-hooks

Code Review | StartBox Easy Hooks

WordPress plugin StartBox Easy Hooks scored 78% from 54 tests.

About plugin

  • Plugin page: startbox-easy-hooks
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Dec 27, 2012
  • Latest release: Apr 30, 2013
  • Number of updates: 9
  • Update frequency: every 13.8 days
  • Top authors: tw2113 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,767 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.11MB] [CPU: ▼6.71ms] Passed 4 tests

Analyzing server-side resources used by StartBox Easy Hooks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.84 ▼8.08
Dashboard /wp-admin3.45 ▲0.1445.33 ▼3.94
Posts /wp-admin/edit.php3.50 ▲0.1450.80 ▼0.48
Add New Post /wp-admin/post-new.php6.03 ▲0.1489.41 ▼14.34
Media Library /wp-admin/upload.php3.37 ▲0.1435.17 ▲3.14
StartBox Easy Hooks /wp-admin/themes.php?page=sbeasyhook3.3132.28

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for StartBox Easy Hooks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.134.70 ▲3.0841.46 ▼2.73
Dashboard /wp-admin2,207 ▲195.81 ▲0.9399.28 ▼13.0939.82 ▼4.43
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0237.57 ▼3.4532.21 ▼2.09
Add New Post /wp-admin/post-new.php1,536 ▲1423.26 ▲0.20647.02 ▲72.6150.65 ▲2.99
Media Library /wp-admin/upload.php1,395 ▲74.24 ▼0.0399.99 ▲2.3039.94 ▼4.78
StartBox Easy Hooks /wp-admin/themes.php?page=sbeasyhook1,1792.0321.8828.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/themes.php?page=sbeasyhook
    • > 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/themes.php?page=sbeasyhook
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/startbox-easy-hooks/startbox-easy-hooks.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: functions, customization, display, hooks, startbox...

startbox-easy-hooks/startbox-easy-hooks.php 92% from 13 tests

This is the main PHP file of "StartBox Easy Hooks" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1288498

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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