84% geoflickr

Code Review | geoFlickr

WordPress plugin geoFlickr scored84%from 54 tests.

About plugin

  • Plugin page: geoflickr
  • Plugin version: 1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Apr 1, 2023
  • Number of updates: 15
  • Update frequency: every 158.5 days
  • Top authors: jbd7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲3.67ms] Passed 4 tests

Server-side resources used by geoFlickr
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0267.97 ▼22.44
Dashboard /wp-admin3.32 ▲0.02124.28 ▲35.75
Posts /wp-admin/edit.php3.37 ▲0.01131.96 ▲28.21
Add New Post /wp-admin/post-new.php5.90 ▲0.01179.72 ▲10.97
Media Library /wp-admin/upload.php3.24 ▲0.0160.49 ▼2.08
GeoFlickr /wp-admin/options-general.php?page=geoflickr/geoflickr.php3.2361.33

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by geoFlickr
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲15713.83 ▼0.4720.86 ▲14.5375.84 ▼25.62
Dashboard /wp-admin2,201 ▲165.85 ▲0.94226.64 ▲34.65130.19 ▲30.60
Posts /wp-admin/edit.php2,096 ▲12.00 ▼0.0377.93 ▲1.1069.30 ▼22.14
Add New Post /wp-admin/post-new.php1,402 ▲4217.69 ▲0.021,122.50 ▼153.5494.43 ▲0.96
Media Library /wp-admin/upload.php1,392 ▲74.20 ▼0.01179.93 ▼45.2393.69 ▼17.59
GeoFlickr /wp-admin/options-general.php?page=geoflickr/geoflickr.php9492.0347.9373.87

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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× 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/geoflickr/geoflickr.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/geoflickr/map.php:8

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

geoflickr/geoflickr.php Passed 13 tests

"geoFlickr" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
128 characters long description:
GeoFlickr displays a map of the location where the photo was taken, for all embedded Flickr photos that contain GPS coordinates.

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
No dangerous file extensions were detected445 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP26747212
JavaScript25832142
CSS214391

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions11
▷ Named functions11100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/yellow_marker16.png0.40KB0.32KB▼ 20.53%
images/red_marker16.png0.55KB0.52KB▼ 5.86%