83% localizaciones-fotografia

Code Review | Localizaciones Fotografía

WordPress plugin Localizaciones Fotografía scored 83% from 54 tests.

About plugin

  • Plugin page: localizaciones-fo...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.4
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 7, 2015
  • Number of updates: 3
  • Update frequency: every 5.7 days
  • Top authors: subexpuestaweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 796 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Localizaciones Fotografía
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼4.78
Dashboard /wp-admin3.32 ▲0.0146.87 ▼5.41
Posts /wp-admin/edit.php3.37 ▲0.0148.30 ▼4.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.98 ▼5.52
Media Library /wp-admin/upload.php3.24 ▲0.0134.60 ▲0.51

Server storage [IO: ▲0.42MB] [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: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Localizaciones Fotografía
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.27 ▼1.484.27 ▲2.1739.53 ▼8.13
Dashboard /wp-admin2,206 ▲214.84 ▼0.0796.62 ▼22.6441.39 ▼6.22
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0739.22 ▼2.0434.58 ▲1.55
Add New Post /wp-admin/post-new.php1,514 ▼1417.50 ▼0.60690.35 ▲75.8360.76 ▲5.57
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0396.22 ▼0.3740.41 ▼4.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/localizaciones-fotografia/localizaciones-fotografia.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === localizaciones-fotografia === )
  • Screenshots: These screenshots do not have images: #1 (Una vez activado el plugin podeis ir en la parte de `Ajustes -> Lectura` para ver la configuración del plugin `/assets/screen1.jpg`), #2 (Para poder utilizar el plugin tan solo hay que insertar el siguiente código indicando la anchura y la altura del mapa `[subexpuesta width="600" height="350"][/subexpuesta]` `/assets/screen2.jpg`), #3 (Ahí tenemos nuestro mapa `/assets/screen3.jpg`)
The official readme.txt is a good inspiration

localizaciones-fotografia/localizaciones-fotografia.php Passed 13 tests

"Localizaciones Fotografía" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
Mapa con localizaciones de fotografía nocturna alojadas en www.subexpuesta.com

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21951,081228
CSS1003

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity55.67
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods109
▷ Static methods00.00%
▷ Public methods10697.25%
▷ Protected methods32.75%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants27
▷ Global constants00.00%
▷ Class constants27100.00%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin