74% wp-panoramio

Code Review | WP Panoramio

WordPress plugin WP Panoramio scored74%from 54 tests.

About plugin

  • Plugin page: wp-panoramio
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.8
  • WordPress version: 6.3.1
  • First release: Jun 8, 2012
  • Latest release: Jun 13, 2012
  • Number of updates: 21
  • Update frequency: every 87.1 days
  • Top authors: ryansutana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,897 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.87ms] Passed 4 tests

This is a short check of server-side resources used by WP Panoramio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.90 ▲1.93
Dashboard /wp-admin3.01 ▼0.3323.86 ▼40.76
Posts /wp-admin/edit.php3.01 ▼0.3425.26 ▼20.02
Add New Post /wp-admin/post-new.php3.01 ▼2.8725.18 ▼65.29
Media Library /wp-admin/upload.php3.01 ▼0.2226.05 ▼9.40

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Panoramio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7014.35 ▼0.012.24 ▲0.5947.14 ▲4.96
Dashboard /wp-admin2,209 ▲355.66 ▲0.0481.04 ▼4.2674.31 ▲33.74
Posts /wp-admin/edit.php2,123 ▲232.00 ▼0.0234.32 ▼2.8831.11 ▼3.45
Add New Post /wp-admin/post-new.php1,555 ▲2023.19 ▲4.97693.36 ▲78.9353.98 ▼7.67
Media Library /wp-admin/upload.php1,411 ▲114.18 ▼0.0896.85 ▼9.4674.26 ▲31.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-panoramio/inc/func.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-panoramio/panoramio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-panoramio/inc/func.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-panoramio === )
The official readme.txt is a good inspiration

wp-panoramio/wp-panoramio.php Passed 13 tests

The main file in "WP Panoramio" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
95 characters long description:
A very simple plugin that display photos worldwide in gallery, slideshow, photo and list style.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin358 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34816350
CSS1418

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.10MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/screen-icon.png54.15KB1.31KB▼ 97.58%
images/menu.png50.09KB0.58KB▼ 98.85%