84% codeless-hotspot-block

Code Review | Codeless Hotspot Block

WordPress plugin Codeless Hotspot Block scored84%from 54 tests.

About plugin

  • Plugin page: codeless-hotspot-...
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 5, 2023
  • Latest release: Mar 5, 2023
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: codelessthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /399 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
Install script ran successfully

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

Server-side resources used by Codeless Hotspot Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.37 ▼7.08
Dashboard /wp-admin3.32 ▲0.0154.22 ▲1.69
Posts /wp-admin/edit.php3.37 ▲0.0152.74 ▲2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.76 ▼7.12
Media Library /wp-admin/upload.php3.24 ▲0.0138.09 ▲0.73

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Codeless Hotspot Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.53 ▲0.081.82 ▲0.0644.38 ▼5.33
Dashboard /wp-admin2,198 ▲215.62 ▼0.0196.76 ▲4.9342.96 ▲1.26
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0134.84 ▼1.9738.06 ▼0.88
Add New Post /wp-admin/post-new.php6,364 ▲4,83828.04 ▲4.80966.54 ▲299.0964.70 ▲11.20
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0199.54 ▼2.1945.70 ▼0.56

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codeless-hotspot-block/codeless-hotspot-block.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
1 plugin tags: block

codeless-hotspot-block/codeless-hotspot-block.php Passed 13 tests

The main file in "Codeless Hotspot Block" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Hotspot Block for WordPress by Codeless

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,739 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON40012,041
JavaScript24479521
Sass24089
CSS12482
PHP21216

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin