84% my-geo-posts-free

Code Review | My Geo Posts Free

WordPress plugin My Geo Posts Free scored 84% from 54 tests.

About plugin

  • Plugin page: my-geo-posts-free
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Apr 19, 2013
  • Latest release: Sep 13, 2014
  • Number of updates: 30
  • Update frequency: every 17.1 days
  • Top authors: mindstien (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active / 3,864 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.55ms] Passed 4 tests

Analyzing server-side resources used by My Geo Posts Free
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.58 ▼9.06
Dashboard /wp-admin3.36 ▲0.0553.66 ▼3.37
Posts /wp-admin/edit.php3.41 ▲0.0554.09 ▼16.59
Add New Post /wp-admin/post-new.php5.94 ▲0.05116.74 ▲16.17
Media Library /wp-admin/upload.php3.28 ▲0.0537.87 ▲2.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Geo Posts Free
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲413.57 ▲0.281.65 ▼0.4448.13 ▲4.51
Dashboard /wp-admin2,209 ▲65.85 ▼0.00109.16 ▼0.4878.14 ▲35.27
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0036.99 ▼0.2933.48 ▲0.49
Add New Post /wp-admin/post-new.php1,535 ▲12423.40 ▲5.61677.13 ▲4.9552.50 ▼6.60
Media Library /wp-admin/upload.php1,406 ▲184.22 ▲0.0295.02 ▼3.4176.46 ▲34.50

Uninstaller [IO: ✅] [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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-geo-posts-free/inc/signup.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/my-geo-posts-free/inc/shortcodes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/my-geo-posts-free/my-geo-posts-free.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/my-geo-posts-free/inc/core.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: geoplugin, geo, maxmind, visitor location, geo location...

my-geo-posts-free/my-geo-posts-free.php 92% from 13 tests

The main PHP file in "My Geo Posts Free" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 266 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin341 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP48028341

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions20
▷ Named functions20100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/geo_large.png5.84KB1.84KB▼ 68.51%
inc/images/newsletter.png2.31KB1.70KB▼ 26.50%
inc/images/new_sub_button.png6.39KB2.77KB▼ 56.56%
inc/images/geo_small.png3.64KB1.03KB▼ 71.62%