68% geoareas

Code Review | GeoAreas

WordPress plugin GeoAreas scored68%from 54 tests.

About plugin

  • Plugin page: geoareas
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.6
  • WordPress version: 6.3.1
  • First release: Jan 23, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 8
  • Update frequency: every 23.5 days
  • Top authors: dotancohen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /713 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.14MB] [CPU: ▲2,254.40ms] 75% from 4 tests

A check of server-side resources used by GeoAreas
Please fix the following
  • Extra CPU: The extra CPU usage must be under 200.00ms (currently 2,254.40ms on /wp-admin/edit-tags.php?taxonomy=geoareas&post_type=page)
PageMemory (MB)CPU Time (ms)
Home /8.11 ▲4.61796,484.12 ▲796,438.14
Dashboard /wp-admin8.11 ▲0.01797,033.97 ▲8,804.87
Posts /wp-admin/edit.php3.61 ▲0.21122.82 ▲72.01
Add New Post /wp-admin/post-new.php6.09 ▲0.16158.80 ▲55.50
Media Library /wp-admin/upload.php3.43 ▲0.16124.33 ▲85.22
GeoAreas /wp-admin/edit-tags.php?taxonomy=geoareas3.46134.98
GeoAreas /wp-admin/edit-tags.php?taxonomy=geoareas&post_type=page3.46119.99

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
geoareas_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for GeoAreas
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.34 ▼0.011.62 ▼0.1337.51 ▼4.86
Dashboard /wp-admin2,206 ▲265.62 ▲0.0284.76 ▼2.5340.42 ▼1.16
Posts /wp-admin/edit.php3,014 ▲9142.04 ▲0.0634.73 ▼1.8933.67 ▼1.42
Add New Post /wp-admin/post-new.php1,543 ▲1721.01 ▼2.54655.90 ▼76.6961.85 ▲10.02
Media Library /wp-admin/upload.php1,405 ▲54.22 ▲0.06108.17 ▼2.9546.45 ▼0.74
GeoAreas /wp-admin/edit-tags.php?taxonomy=geoareas2,6202.1330.9957.59
GeoAreas /wp-admin/edit-tags.php?taxonomy=geoareas&post_type=page2,6202.1227.7045.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-includes/taxonomy.php+1971
    Object of class WP_Term could not be converted to int
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • geoareas_children
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=geoareas&post_type=page
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=geoareas&post_type=page
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/geoareas/geoareas.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
2 plugin tags: geography, israel

geoareas/geoareas.php Passed 13 tests

The main PHP script in "GeoAreas" version 0.3 is automatically included on every request by WordPress
70 characters long description:
Provide a geography taxonomy containing hierarchical geographic areas.

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
Everything looks great! No dangerous files found in this plugin171 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1559171

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin