84% geodirectory-genesis-compatibility-pack

Code Review | GeoDirectory - Genesis Compatibility Pack

WordPress plugin GeoDirectory - Genesis Compatibility Pack scored 84% from 54 tests.

About plugin

  • Plugin page: geodirectory-gene...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Mar 4, 2015
  • Number of updates: 8
  • Update frequency: every 28.0 days
  • Top authors: paoltaia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by GeoDirectory - Genesis Compatibility Pack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.37 ▼9.63
Dashboard /wp-admin3.32 ▲0.0244.80 ▼6.74
Posts /wp-admin/edit.php3.37 ▲0.0249.78 ▲1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.30 ▼6.81
Media Library /wp-admin/upload.php3.24 ▲0.0233.51 ▲0.27

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GeoDirectory - Genesis Compatibility Pack
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.32 ▼1.061.72 ▼0.2039.37 ▼3.69
Dashboard /wp-admin2,206 ▲185.88 ▲0.9898.51 ▼17.1538.58 ▼6.57
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0039.73 ▲5.2034.49 ▲0.23
Add New Post /wp-admin/post-new.php1,514 ▼2817.49 ▼0.80680.42 ▲80.8154.19 ▲0.23
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0196.52 ▲2.4541.64 ▲0.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: There are too many tags (44 tag instead of maximum 10)
You can look at the official readme.txt

geodirectory-genesis-compatibility-pack/geodir_genesis_compatibility.php 92% from 13 tests

The main PHP file in "GeoDirectory - Genesis Compatibility Pack" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("geodirectory-genesis-compatibility-pack.php" instead of "geodir_genesis_compatibility.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin146 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14145137
CSS1439

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin