78% show-git-developer-profile

Code Review | Show developer profile

WordPress plugin Show developer profile scored78%from 54 tests.

About plugin

  • Plugin page: show-git-develope...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Jan 9, 2020
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: evandrosouza89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.03ms] Passed 4 tests

Analyzing server-side resources used by Show developer profile
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.41 ▼1.37
Dashboard /wp-admin3.35 ▲0.0449.34 ▼7.15
Posts /wp-admin/edit.php3.40 ▲0.0450.29 ▼0.58
Add New Post /wp-admin/post-new.php5.93 ▲0.04100.96 ▼6.40
Media Library /wp-admin/upload.php3.27 ▲0.0437.45 ▼1.18
Show Developer Profile Plugin /wp-admin/options-general.php?page=show-developer-profile-plugin3.2131.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Show developer profile
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.77 ▲0.511.85 ▼0.1147.98 ▲2.59
Dashboard /wp-admin2,213 ▲345.85 ▲0.98101.04 ▼9.0140.37 ▼3.62
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0236.70 ▼10.0633.40 ▼5.29
Add New Post /wp-admin/post-new.php1,536 ▲2223.07 ▲5.19690.57 ▲0.9468.16 ▲6.26
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.05104.56 ▼28.5545.05 ▼2.04
Show Developer Profile Plugin /wp-admin/options-general.php?page=show-developer-profile-plugin7782.0526.7729.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_evandrosouza89_sdvp_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
    • > Notice in wp-content/plugins/show-git-developer-profile/show-developer-profile-settings.php+59
    Trying to access array offset on value of type bool
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=show-developer-profile-plugin
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-git-developer-profile/show-developer-profile-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/show-git-developer-profile/show-developer-profile.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-git-developer-profile/show-developer-profile-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: portfolio, developer, profile, github

show-git-developer-profile/show-developer-profile.php 92% from 13 tests

The main PHP script in "Show developer profile" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-git-developer-profile.php" instead of "show-developer-profile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin203 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33729160
CSS111043

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected