10% bepro-listings-wpjm

Code Review | BePro Listings WPJM

WordPress plugin BePro Listings WPJM scored 10% from 54 tests.

About plugin

  • Plugin page: bepro-listings-wpjm
  • Plugin version: 1.0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 5.9.2
  • First release: Oct 8, 2020
  • Latest release: Oct 8, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: BeyondPrograms (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 253 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method bpl_wpjm_link::bpl_wpjm_activate() should not be called statically

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

Analyzing server-side resources used by BePro Listings WPJM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.72 ▲4.60
Dashboard /wp-admin3.42 ▲0.0037.64 ▲0.42
Posts /wp-admin/edit.php3.65 ▲0.0044.42 ▲2.49
Add New Post /wp-admin/post-new.php6.89 ▼0.0994.78 ▼1,182.32
Media Library /wp-admin/upload.php3.30 ▲0.0032.45 ▲4.94

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 1 new option
New tables
wp_bepro_listings_wpjm
New WordPress options
bepro_listings_wpjm

Browser metrics Passed 4 tests

A check of browser resources used by BePro Listings WPJM
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲5315.22 ▼0.446.00 ▲0.082.97 ▲0.68
Dashboard /wp-admin2,895 ▲446.06 ▼0.08115.74 ▼18.62152.79 ▼47.27
Posts /wp-admin/edit.php2,691 ▼33.24 ▼0.0069.65 ▲8.07142.72 ▼1.77
Add New Post /wp-admin/post-new.php1,655 ▼9721.31 ▲0.33414.77 ▼65.46172.98 ▲21.28
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.02145.93 ▼19.95186.10 ▼4.17

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
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_bepro_listings_wpjm
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • bepro_listings_wpjm

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bepro-listings-wpjm/tabs/tab-jobs.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bepro-listings-wpjm/tabs/jobs.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bepro-listings-wpjm/admin_tabs/jobs.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/bepro-listings-wpjm/admin_tabs/tab-jobs.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

bepro-listings-wpjm/bepro_listings_wpjm.php 92% from 13 tests

The main PHP file in "BePro Listings WPJM" ver. 1.0.01 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bepro-listings-wpjm.php" instead of "bepro_listings_wpjm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin255 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP59292255

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin