62% wp-seo-locations

Code Review | WordPress SEO Locations

WordPress plugin WordPress SEO Locations scored62%from 54 tests.

About plugin

  • Plugin page: wp-seo-locations
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 15, 2014
  • Latest release: Aug 20, 2014
  • Number of updates: 85
  • Update frequency: every 0.1 days
  • Top authors: smleimberg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,564 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼30.22ms] Passed 4 tests

Server-side resources used by WordPress SEO Locations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.68 ▲5.49
Dashboard /wp-admin3.02 ▼0.2922.69 ▼30.14
Posts /wp-admin/edit.php3.02 ▼0.3423.40 ▼22.10
Add New Post /wp-admin/post-new.php3.02 ▼2.8731.88 ▼54.88
Media Library /wp-admin/upload.php3.02 ▼0.2121.00 ▼13.77
All Locations /wp-admin/edit.php?post_type=locations3.0228.54
Add New /wp-admin/post-new.php?post_type=locations3.0224.47
Locations /wp-admin/options-general.php?page=wp-seo-locations/options.php3.0223.77

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
wpseol_pin_color
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
wpseol_map_type
wpseol_map_height
widget_recent-posts
wpseol_map_width
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordPress SEO Locations
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.26 ▼1.195.89 ▲4.1943.92 ▲0.68
Dashboard /wp-admin2,234 ▲435.81 ▲0.88112.66 ▲8.5941.23 ▼0.18
Posts /wp-admin/edit.php2,117 ▲282.00 ▼0.0234.23 ▼5.1035.84 ▼3.69
Add New Post /wp-admin/post-new.php1,560 ▲2722.93 ▼0.45639.96 ▼18.4456.37 ▲4.01
Media Library /wp-admin/upload.php1,419 ▲314.17 ▼0.05104.55 ▲0.0346.98 ▲5.02
All Locations /wp-admin/edit.php?post_type=locations1,0811.9335.4231.34
Add New /wp-admin/post-new.php?post_type=locations1,5722.5149.8053.20
Locations /wp-admin/options-general.php?page=wp-seo-locations/options.php1,1082.1424.4624.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-seo-locations/options.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-seo-locations/wp-seo-locations.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-seo-locations/options.php:118

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: location, google, seo, address, map...

wp-seo-locations/wp-seo-locations.php 92% from 13 tests

The primary PHP file in "WordPress SEO Locations" version 0.1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin533 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34347388
Markdown1540145

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity2.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/matmon_logo.png2.72KB1.73KB▼ 36.56%
images/settings.png50.21KB20.59KB▼ 58.99%
images/edit_location.png41.68KB18.20KB▼ 56.33%