83% show-post-by-location

Code Review | Show Post By Location

WordPress plugin Show Post By Location scored83%from 54 tests.

About plugin

  • Plugin page: show-post-by-loca...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2021
  • Latest release: Sep 16, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: manolomunoz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /264 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.67ms] Passed 4 tests

A check of server-side resources used by Show Post By Location
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.52 ▲1.78
Dashboard /wp-admin3.40 ▲0.0544.60 ▼12.52
Posts /wp-admin/edit.php3.45 ▲0.0947.51 ▼7.33
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.52 ▼19.01
Media Library /wp-admin/upload.php3.32 ▲0.0937.51 ▲0.18
Localizaciones /wp-admin/edit-tags.php?taxonomy=location3.3136.46

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Show Post By Location
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8213.27 ▼1.114.42 ▲2.6242.35 ▼0.50
Dashboard /wp-admin2,237 ▲555.83 ▼0.03102.84 ▼3.9876.37 ▲30.97
Posts /wp-admin/edit.php2,137 ▲482.01 ▼0.0438.22 ▼2.2634.91 ▼2.13
Add New Post /wp-admin/post-new.php1,538 ▲2417.74 ▲0.29730.19 ▲39.5258.77 ▼3.04
Media Library /wp-admin/upload.php1,410 ▲224.25 ▲0.08100.11 ▲0.7475.22 ▲30.54
Localizaciones /wp-admin/edit-tags.php?taxonomy=location1,2932.1429.0831.26

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 did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/show-post-by-location/show-post-location.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

show-post-by-location/show-post-location.php 85% from 13 tests

The primary PHP file in "Show Post By Location" version 0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-post-by-location.php" instead of "show-post-location.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected406 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP462157405
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin