77% wp-developer-support

Code Review | WP Developer Support

WordPress plugin WP Developer Support scored77%from 54 tests.

About plugin

  • Plugin page: wp-developer-support
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: Oct 17, 2022
  • Number of updates: 103
  • Update frequency: every 13.4 days
  • Top authors: lightimagemedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /763 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.60ms] Passed 4 tests

Analyzing server-side resources used by WP Developer Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.89 ▼2.45
Dashboard /wp-admin3.40 ▲0.0950.01 ▼2.64
Posts /wp-admin/edit.php3.51 ▲0.1551.65 ▼0.11
Add New Post /wp-admin/post-new.php6.00 ▲0.1197.21 ▲1.52
Media Library /wp-admin/upload.php3.32 ▲0.0933.54 ▼9.20

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP Developer Support
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.66 ▼0.697.66 ▲5.7545.58 ▼0.32
Dashboard /wp-admin2,218 ▲415.60 ▼0.0190.80 ▼13.1642.89 ▼0.28
Posts /wp-admin/edit.php2,126 ▲262.02 ▲0.0441.82 ▲6.2535.78 ▲0.18
Add New Post /wp-admin/post-new.php1,548 ▲2223.36 ▼0.24610.39 ▼62.7643.18 ▼29.50
Media Library /wp-admin/upload.php1,426 ▲264.26 ▲0.0297.05 ▼28.4344.63 ▼5.89

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% 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 items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-developer-support/inc/frontend/views/html-wpdevcs-admin-developer-support-frontend-display.php
    • > /wp-content/plugins/wp-developer-support/inc/admin/views/partials-html-form-view.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-developer-support/inc/admin/views/partials-html-form-view.php:156

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (WordPress Functions)
The official readme.txt might help

wp-developer-support/wpdevcs-admin-developer-support.php 77% from 13 tests

The main file in "WP Developer Support" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-developer-support.php" instead of "wpdevcs-admin-developer-support.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,164 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP138705313,853
JavaScript37350270
HTML15041
CSS20100

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods32
▷ Static methods39.38%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/admin/assets/images/wpcsdev.png3.63KB2.51KB▼ 30.93%
inc/admin/assets/images/wpdevgraphics.png3.63KB2.51KB▼ 30.93%