10% big-blog-map

Code Review | Big Blog Map - Geotag your posts

WordPress plugin Big Blog Map - Geotag your posts scored10%from 54 tests.

About plugin

  • Plugin page: big-blog-map
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Aug 11, 2013
  • Latest release: Dec 13, 2013
  • Number of updates: 3
  • Update frequency: every 40.0 days
  • Top authors: bpj50 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,187 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/big-blog-map/big-blog-map.php+468
    Trying to get property 'post_type' of non-object

Server metrics [RAM: ▼0.67MB] [CPU: ▼22.69ms] Passed 4 tests

Server-side resources used by Big Blog Map - Geotag your posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0446.26 ▼1.53
Dashboard /wp-admin3.35 ▲0.0051.40 ▼19.32
Posts /wp-admin/edit.php3.40 ▲0.0452.87 ▼2.75
Add New Post /wp-admin/post-new.php3.13 ▼2.7542.52 ▼67.17
Media Library /wp-admin/upload.php3.27 ▲0.0439.06 ▲0.24
Big Blog Map /wp-admin/options-general.php?page=bbm_options3.2634.73

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 394 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Big Blog Map - Geotag your posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.27 ▼0.301.76 ▼0.3443.31 ▼2.44
Dashboard /wp-admin2,196 ▲165.54 ▼0.1585.82 ▼1.7539.14 ▼3.27
Posts /wp-admin/edit.php2,104 ▲11.97 ▼0.0240.95 ▲0.8335.62 ▼2.84
Add New Post /wp-admin/post-new.php6,278 ▲4,75026.57 ▲3.29893.41 ▲240.3963.37 ▲4.81
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0097.89 ▼16.4943.56 ▼3.48
Big Blog Map /wp-admin/options-general.php?page=bbm_options1,2503.0743.6729.49

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% 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
  • 15 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bbm_options
    • > Notice in wp-content/plugins/big-blog-map/big-blog-map.php+196
    Trying to access array offset on value of type bool

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
  • 2× 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/big-blog-map/big-blog-map.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/big-blog-map/theme_files/template_bbm.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: maps, geotagging, geotag, google maps

big-blog-map/big-blog-map.php 92% from 13 tests

This is the main PHP file of "Big Blog Map - Geotag your posts" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 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
Good job! No executable or dangerous file extensions detected22,314 lines of code in 97 files:
LanguageFilesBlank linesComment linesLines of code
CSS151,1971337,334
LESS481,0571,1545,908
HTML103291623,747
JavaScript201,3951,3843,573
Sass286141,106
PHP236768646

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
265 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bbm-resources/img/flags/cy.png0.42KB0.45KB0.00%
bbm-resources/img/flags/nc.png0.58KB0.71KB0.00%
bbm-resources/img/flags/bt.png0.62KB0.70KB0.00%
bbm-resources/img/flags/kp.png0.55KB0.72KB0.00%
bbm-resources/img/flags/scotland.png0.63KB0.67KB0.00%