66% wp-property-blm-export-add-on

Code Review | WP-Property - BLM Export

WordPress plugin WP-Property - BLM Export scored66%from 54 tests.

About plugin

  • Plugin page: wp-property-blm-e...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Jul 19, 2013
  • Latest release: Jul 20, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: BIOSTALL (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.95ms] Passed 4 tests

Analyzing server-side resources used by WP-Property - BLM Export
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2344.59 ▲4.09
Dashboard /wp-admin3.53 ▲0.2346.31 ▼5.95
Posts /wp-admin/edit.php3.58 ▲0.2349.15 ▲3.87
Add New Post /wp-admin/post-new.php6.11 ▲0.2392.11 ▼1.44
Media Library /wp-admin/upload.php3.46 ▲0.2336.14 ▼0.26
BLM Export /wp-admin/options-general.php?page=blm-export-settings3.3931.51

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 4 new tables, 8 new options
New tables
wp_blm_export_logs_feed_error
wp_blm_export_logs_feed_portal
wp_blm_export_logs_feed_portal_property
wp_blm_export_logs_feed
New WordPress options
widget_recent-comments
theysaidso_admin_options
wpp_blm_export_version
can_compress_scripts
db_upgraded
wpp_blm_export_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-Property - BLM Export
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.28 ▼1.021.70 ▼0.3844.11 ▼1.97
Dashboard /wp-admin2,207 ▲165.83 ▲0.01100.56 ▼4.6638.57 ▼6.14
Posts /wp-admin/edit.php2,093 ▲72.02 ▼0.0337.62 ▲1.3334.48 ▼0.77
Add New Post /wp-admin/post-new.php1,540 ▼223.49 ▲5.30635.32 ▼15.9362.37 ▲8.74
Media Library /wp-admin/upload.php1,386 ▼24.23 ▲0.0397.00 ▼9.7041.41 ▼3.18
BLM Export /wp-admin/options-general.php?page=blm-export-settings7931.9528.8724.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=blm-export-settings
    • > 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=blm-export-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-property-blm-export-add-on/archive.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-property-blm-export-add-on/wp-property-blm-export.php:32
    • > PHP Fatal error
      Uncaught Error: Call to a member function flush() on null in wp-content/plugins/wp-property-blm-export-add-on/cron.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-property-blm-export-add-on/archive.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=blm-export-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-property-blm-export-add-on/js/jqModal.js?ver=6.3.1 60:40 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')
    • > GET request to /wp-admin/options-general.php?page=blm-export-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: portals is not defined" "ReferenceError: portals is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wp-property-blm-export-add-on/js/wp-property-blm-export-admin.js?ver=6.3.1:285:16)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=blm-export-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: portals is not defined

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Export and Sending Options), #2 (Portals and Branch Codes), #3 (Field Mapping), #4 (Archiving), #5 (Statistics), #6 (Actions and Tools)
  • Tested up to: Invalid version format
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

wp-property-blm-export-add-on/wp-property-blm-export.php 92% from 13 tests

The main file in "WP-Property - BLM Export" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-property-blm-export-add-on.php" instead of "wp-property-blm-export.php")

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
There were no executable files found in this plugin3,373 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34002112,596
JavaScript210925670
CSS2118107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/help.png1.89KB0.85KB▼ 55.18%