84% geodirectory-x-theme-compatibility-pack

Code Review | GeoDirectory - X Theme Compatibility Pack

WordPress plugin GeoDirectory - X Theme Compatibility Pack scored84%from 54 tests.

About plugin

  • Plugin page: geodirectory-x-th...
  • Plugin version: 1.0.3
  • 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: 7
  • Update frequency: every 32.0 days
  • Top authors: paoltaia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,880 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.55ms] Passed 4 tests

An overview of server-side resources used by GeoDirectory - X Theme Compatibility Pack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.45 ▼8.89
Dashboard /wp-admin3.36 ▲0.0648.26 ▼4.49
Posts /wp-admin/edit.php3.41 ▲0.0644.30 ▼4.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.71 ▼4.66
Media Library /wp-admin/upload.php3.28 ▲0.0635.88 ▼0.53

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

GeoDirectory - X Theme Compatibility Pack: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.25 ▼0.391.79 ▼0.1544.39 ▼3.83
Dashboard /wp-admin2,195 ▲185.50 ▼0.1683.48 ▼15.8039.61 ▼2.67
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0335.11 ▼2.5633.04 ▼3.72
Add New Post /wp-admin/post-new.php1,531 ▲323.34 ▲0.26635.33 ▼63.2862.23 ▲7.59
Media Library /wp-admin/upload.php1,400 ▼04.29 ▼0.02104.07 ▼1.8848.24 ▲3.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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 everything seems fine, this is not an exhaustive test

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
Almost there! Just 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-x-theme-compatibility-pack/geodir_x_compatibility.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 44 tag instead of maximum 10
The official readme.txt might help

geodirectory-x-theme-compatibility-pack/geodir_x_compatibility.php 92% from 13 tests

The main PHP script in "GeoDirectory - X Theme Compatibility Pack" version 1.0.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("geodirectory-x-theme-compatibility-pack.php" instead of "geodir_x_compatibility.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 detected306 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14150188
CSS13511118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
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 are no PNG files in this plugin