89% prohotpoints-gallery

Code Review | ProHotspots Lite - Image Gallery Hotspots

WordPress plugin ProHotspots Lite - Image Gallery Hotspots scored89%from 54 tests.

About plugin

  • Plugin page: prohotpoints-gallery
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.1
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Feb 20, 2019
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: AA-Team (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,013 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.24ms] Passed 4 tests

A check of server-side resources used by ProHotspots Lite - Image Gallery Hotspots
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.15 ▼2.98
Dashboard /wp-admin3.37 ▲0.0245.88 ▼15.72
Posts /wp-admin/edit.php3.43 ▲0.0745.79 ▼2.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.87 ▼11.55
Media Library /wp-admin/upload.php3.29 ▲0.0734.86 ▼1.06

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

Browser metrics Passed 4 tests

A check of browser resources used by ProHotspots Lite - Image Gallery Hotspots
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,149 ▲40322.67 ▲8.295.68 ▲3.8632.84 ▼11.17
Dashboard /wp-admin2,450 ▲26210.86 ▲4.99248.43 ▲128.2555.52 ▲9.39
Posts /wp-admin/edit.php2,307 ▲21811.39 ▲9.3782.22 ▲48.1745.26 ▲10.03
Add New Post /wp-admin/post-new.php6,351 ▲4,83229.96 ▲6.75693.13 ▼16.8338.64 ▼15.10
Media Library /wp-admin/upload.php1,758 ▲37311.96 ▲7.76138.58 ▲37.4947.12 ▲2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #2 (Frontend Preview assets/screenshot-2.png)
The official readme.txt is a good inspiration

prohotpoints-gallery/index.php 69% from 13 tests

The main PHP script in "ProHotspots Lite - Image Gallery Hotspots" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("prohotpoints-gallery.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin11,037 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS818148,072
SVG7002,618
PHP27262262
JavaScript20678
JSON7007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin