84% gender-decoder

Code Review | Gender Decoder

WordPress plugin Gender Decoder scored84%from 54 tests.

About plugin

  • Plugin page: gender-decoder
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 22, 2021
  • Latest release: Jan 22, 2021
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: faithlesslooting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /468 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.24ms] Passed 4 tests

Server-side resources used by Gender Decoder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.42 ▼3.33
Dashboard /wp-admin3.32 ▲0.0241.99 ▼5.51
Posts /wp-admin/edit.php3.38 ▲0.0244.99 ▼1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0277.45 ▼14.61
Media Library /wp-admin/upload.php3.25 ▲0.0235.97 ▼1.36

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

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

Browser metrics Passed 4 tests

Gender Decoder: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.22 ▼0.881.68 ▼0.1239.43 ▼7.37
Dashboard /wp-admin2,227 ▲394.87 ▼1.1398.81 ▼16.1065.87 ▲21.23
Posts /wp-admin/edit.php2,109 ▲232.01 ▲0.0235.42 ▼1.7535.67 ▲1.68
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▼0.23748.79 ▲49.5261.22 ▲6.74
Media Library /wp-admin/upload.php1,409 ▲214.29 ▲0.08101.83 ▼3.7250.19 ▲4.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gender-decoder/genderdecoder.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: simple, recruiter, jobsite, job-advert, shortcode

gender-decoder/genderdecoder.php 85% from 13 tests

This is the main PHP file of "Gender Decoder" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 213 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gender-decoder.php" instead of "genderdecoder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12045116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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