90% beachliga-iframe

Code Review | BeachLiga Iframe

WordPress plugin BeachLiga Iframe scored90%from 54 tests.

About plugin

  • Plugin page: beachliga-iframe
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 7, 2021
  • Latest release: Mar 31, 2021
  • Number of updates: 13
  • Update frequency: every 6.5 days
  • Top authors: davidosuna1987 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /385 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.38ms] Passed 4 tests

A check of server-side resources used by BeachLiga Iframe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.16 ▲4.97
Dashboard /wp-admin3.32 ▲0.0249.83 ▲1.17
Posts /wp-admin/edit.php3.37 ▲0.0248.83 ▼2.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.27 ▼7.68
Media Library /wp-admin/upload.php3.24 ▲0.0139.52 ▲3.73

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for BeachLiga Iframe
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲16013.69 ▼0.696.16 ▲4.2742.82 ▲2.63
Dashboard /wp-admin2,221 ▲154.84 ▼1.01100.79 ▼1.0142.39 ▼5.72
Posts /wp-admin/edit.php2,100 ▼02.18 ▲0.1236.17 ▼1.0334.50 ▼3.77
Add New Post /wp-admin/post-new.php1,543 ▲1723.29 ▲5.81633.05 ▼10.7351.99 ▲2.06
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0699.85 ▼9.6741.71 ▼4.00

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

beachliga-iframe/beachliga-iframe.php Passed 13 tests

The main PHP script in "BeachLiga Iframe" version 1.0 is automatically included on every request by WordPress
107 characters long description:
BeachLiga shortcode for your trainings and tournaments[beachliga src="path/to/your/training/or/tournament"]

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
Success! There were no dangerous files found in this plugin81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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 files were detected