83% geodirectory-multinews-compatibility-pack

Code Review | GeoDirectory - Multinews Theme Compatibility Pack

WordPress plugin GeoDirectory - Multinews Theme Compatibility Pack scored83%from 54 tests.

About plugin

  • Plugin page: geodirectory-mult...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.1.0
  • WordPress version: 6.3.1
  • First release: Jan 1, 2015
  • Latest release: Jan 5, 2015
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: Momizat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,494 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.15ms] Passed 4 tests

A check of server-side resources used by GeoDirectory - Multinews Theme Compatibility Pack
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.60 ▼2.68
Dashboard /wp-admin3.32 ▲0.0243.97 ▼2.59
Posts /wp-admin/edit.php3.37 ▲0.0143.45 ▼1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.81 ▼13.82
Media Library /wp-admin/upload.php3.24 ▲0.0134.14 ▼0.61

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for GeoDirectory - Multinews Theme Compatibility Pack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲7013.22 ▼1.192.53 ▲0.6942.21 ▼6.64
Dashboard /wp-admin2,209 ▲175.89 ▲0.9698.28 ▼18.4438.45 ▼5.11
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0141.44 ▲1.8537.48 ▲4.51
Add New Post /wp-admin/post-new.php1,534 ▲123.19 ▼0.14662.43 ▲66.3250.33 ▼4.77
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0595.08 ▼7.1841.13 ▼3.17

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geodirectory-multinews-compatibility-pack/trunk/geo-mn-compatibility.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/geodirectory-multinews-compatibility-pack/geo-mn-compatibility.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid URI ("")
  • Tags: Please reduce the number of tags, currently 44 tag instead of maximum 10
You can look at the official readme.txt

geodirectory-multinews-compatibility-pack/geo-mn-compatibility.php 92% from 13 tests

"GeoDirectory - Multinews Theme Compatibility Pack" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("geodirectory-multinews-compatibility-pack.php" instead of "geo-mn-compatibility.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected299 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS105206
PHP1322793

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.02
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%
Functions28
▷ Named functions28100.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
No PNG images were found in this plugin