62% wp-developers-homepage

Code Review | WP Developers Homepage

WordPress plugin WP Developers Homepage scored 62% from 54 tests.

About plugin

  • Plugin page: wp-developers-hom...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2016
  • Latest release: Apr 17, 2023
  • Number of updates: 20
  • Update frequency: every 117.2 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,017 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.94MB] [CPU: ▼51.87ms] Passed 4 tests

An overview of server-side resources used by WP Developers Homepage
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.425.32 ▼38.24
Dashboard /wp-admin2.06 ▼1.248.68 ▼41.92
Posts /wp-admin/edit.php2.06 ▼1.298.11 ▼36.54
Add New Post /wp-admin/post-new.php2.06 ▼3.827.50 ▼90.77
Media Library /wp-admin/upload.php2.06 ▼1.167.00 ▼25.63
WP Developers Homepage /wp-admin/options-general.php?page=wp-developers-homepage-admin2.079.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 687 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Developers Homepage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.74 ▼0.865.42 ▲3.6040.84 ▼2.08
Dashboard /wp-admin2,238 ▲635.08 ▲0.07119.08 ▲0.4438.91 ▼1.90
Posts /wp-admin/edit.php2,124 ▲382.13 ▲0.1542.92 ▲8.5335.71 ▲3.06
Add New Post /wp-admin/post-new.php6,442 ▲4,90820.56 ▼2.68850.33 ▲159.8836.15 ▼20.13
Media Library /wp-admin/upload.php1,420 ▲294.30 ▲0.11100.03 ▲3.1644.21 ▼0.96
WP Developers Homepage /wp-admin/options-general.php?page=wp-developers-homepage-admin9562.2129.7828.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-developers-homepage-blocks handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-developers-homepage-admin
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-developers-homepage-blocks handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=wp-developers-homepage-admin
    • > 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/options-general.php?page=wp-developers-homepage-admin
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-developers-homepage-admin
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/wp-developers-homepage/admin/class-wp-developers-homepage-admin.php+777
    Undefined index: refresh_timeout

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
Almost there! Just fix the following items
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/example_extract_html.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/example_advanced_selector.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/scraping/example_scraping_slashdot.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/scraping/example_scraping_digg.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/scraping/example_scraping_imdb.php
    • > /wp-content/plugins/wp-developers-homepage/admin/partials/wp-developers-homepage-admin-display.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/example_modify_contents.php
    • > /wp-content/plugins/wp-developers-homepage/public/partials/wp-developers-homepage-public-display.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/example_callback.php
    • > /wp-content/plugins/wp-developers-homepage/vendor/simplehtmldom/simplehtmldom/example/example_basic_selector.php
  • 287× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Message\\Encoding\\FilteredStream' not found in wp-content/plugins/wp-developers-homepage/vendor/php-http/message/src/Encoding/CompressStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/wp-developers-homepage/vendor/knplabs/github-api/lib/Github/Api/GitData/References.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/wp-developers-homepage/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Trait 'Http\\Message\\Decorator\\MessageDecorator' not found in wp-content/plugins/wp-developers-homepage/vendor/php-http/message/src/Decorator/RequestDecorator.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/wp-developers-homepage/vendor/knplabs/github-api/lib/Github/Api/Issue.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/wp-developers-homepage/vendor/knplabs/github-api/lib/Github/Api/GitData.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Github\\Api\\Project\\AbstractProjectApi' not found in wp-content/plugins/wp-developers-homepage/vendor/knplabs/github-api/lib/Github/Api/Repository/Projects.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Github\\Api\\AbstractApi' not found in wp-content/plugins/wp-developers-homepage/vendor/knplabs/github-api/lib/Github/Api/CurrentUser.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/wp-developers-homepage/vendor/php-http/client-common/src/Plugin/AddPathPlugin.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/wp-developers-homepage/vendor/php-http/client-common/src/Plugin/AuthenticationPlugin.php:17

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 96% from 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
7 plugin tags: theme, tickets, plugin, support, unresolved...

wp-developers-homepage/wp-developers-homepage.php 92% from 13 tests

The entry point to "WP Developers Homepage" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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 detected37,755 lines of code in 649 files:
LanguageFilesBlank linesComment linesLines of code
PHP4506,12417,13224,929
Markdown1573,04007,623
JSON29003,034
JavaScript51573361,688
CSS46425322
YAML380153
HTML1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.13
▷ Minimum class complexity1.00
▷ Maximum class complexity270.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity87.00
Code structure
Namespaces69
Interfaces59
Traits15
Classes339
▷ Abstract classes61.77%
▷ Concrete classes33398.23%
▷ Final classes13239.64%
Methods2,106
▷ Static methods21810.35%
▷ Public methods1,84487.56%
▷ Protected methods743.51%
▷ Private methods1888.93%
Functions192
▷ Named functions5830.21%
▷ Anonymous functions13469.79%
Constants135
▷ Global constants3525.93%
▷ Class constants10074.07%
▷ Public constants8787.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
No PNG images were found in this plugin