10% support-my-work

Code Review | Support My Work

WordPress plugin Support My Work scored 10% from 54 tests.

About plugin

  • Plugin page: support-my-work
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 15, 2014
  • Latest release: Jan 15, 2014
  • Number of updates: 5
  • Update frequency: every 401.4 days
  • Top authors: jennifermontes (80%)cuibonobo (40%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,685 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/support-my-work/support-my-work.php+110
    Function create_function() is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼52.19ms] Passed 4 tests

Analyzing server-side resources used by Support My Work
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.91 ▼38.37
Dashboard /wp-admin2.09 ▼1.226.24 ▼45.36
Posts /wp-admin/edit.php2.09 ▼1.276.38 ▼43.51
Add New Post /wp-admin/post-new.php2.09 ▼3.806.91 ▼81.52
Media Library /wp-admin/upload.php2.09 ▼1.146.36 ▼29.27

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_support_my_work
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Support My Work
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.29 ▲0.145.34 ▲3.0045.34 ▲1.73
Dashboard /wp-admin2,206 ▼05.86 ▲0.03101.88 ▼0.7640.53 ▲1.07
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0535.60 ▼0.2933.37 ▼0.16
Add New Post /wp-admin/post-new.php1,533 ▼223.29 ▲0.01666.58 ▲70.8963.59 ▲4.92
Media Library /wp-admin/upload.php1,385 ▼34.25 ▲0.06109.23 ▲6.6446.88 ▲2.63

Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% 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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/support-my-work/support-my-work.php+110
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_support_my_work
    • widget_theysaidso_widget
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/support-my-work/support-my-work.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
3 plugin tags: widget, button, paypal

support-my-work/support-my-work.php Passed 13 tests

The primary PHP file in "Support My Work" version 0.2 is used by WordPress to initiate all plugin functionality
68 characters long description:
Display a "Buy Now" PayPal button where users can enter they amount.

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
No dangerous file extensions were detected280 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS14361194
PHP181686

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin