84% pointfinder-xml-csv-listings-import

Code Review | Import Listings into the PointFinder Theme

WordPress plugin Import Listings into the PointFinder Theme scored84%from 54 tests.

About plugin

  • Plugin page: pointfinder-xml-c...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Mar 31, 2020
  • Number of updates: 12
  • Update frequency: every 123.7 days
  • Top authors: webbu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Import Listings into the PointFinder Theme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2342.71 ▼1.05
Dashboard /wp-admin3.57 ▲0.2356.59 ▲1.05
Posts /wp-admin/edit.php3.68 ▲0.2952.32 ▲2.38
Add New Post /wp-admin/post-new.php6.15 ▲0.2291.28 ▼1.85
Media Library /wp-admin/upload.php3.49 ▲0.2239.64 ▲4.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Import Listings into the PointFinder Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.34 ▼0.121.57 ▼0.2940.26 ▼4.73
Dashboard /wp-admin2,212 ▲385.58 ▲0.0285.41 ▼19.2838.95 ▼3.60
Posts /wp-admin/edit.php2,118 ▲182.01 ▲0.0641.73 ▲3.2137.73 ▲1.07
Add New Post /wp-admin/post-new.php1,535 ▲723.64 ▲0.63635.57 ▼63.7556.40 ▼2.24
Media Library /wp-admin/upload.php1,414 ▲174.16 ▼0.0399.46 ▼6.1343.17 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/pointfinder-xml-csv-listings-import/pointfinder-add-on.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/pointfinder-xml-csv-listings-import/pointfinder-add-on.php on line 16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pointfinder-xml-csv-listings-import/pointfinder-add-on.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: pointfinder, import listings, import pointfinder, business directory, wp job manager...

pointfinder-xml-csv-listings-import/pointfinder-add-on.php 92% from 13 tests

Analyzing the main PHP file in "Import Listings into the PointFinder Theme" version 1.0.2
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pointfinder-xml-csv-listings-import.php" instead of "pointfinder-add-on.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
No dangerous file extensions were detected1,178 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23321931,125
Markdown143053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin