84% website-trial-version

Code Review | Website Trial Version

WordPress plugin Website Trial Version scored84%from 54 tests.

About plugin

  • Plugin page: website-trial-ver...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 22, 2018
  • Latest release: Feb 22, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: marcobrandx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /775 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Website Trial Version
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.49 ▼1.82
Dashboard /wp-admin3.35 ▲0.0546.40 ▼0.75
Posts /wp-admin/edit.php3.40 ▲0.0545.60 ▲0.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.57 ▼23.09
Media Library /wp-admin/upload.php3.27 ▲0.0536.56 ▲0.93
WTV Options /wp-admin/options-general.php?page=wbst-tvs-options-page3.2427.61

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 14 new options
New WordPress options
wbst_tvs_box_hide
widget_recent-comments
wbst_tvs_box_text
wbst_tvs_box_end_date
db_upgraded
wbst_tvs_box_message
widget_theysaidso_widget
wbst_tvs_box_once_time
can_compress_scripts
wbst_tvs_box_color
...

Browser metrics Passed 4 tests

An overview of browser requirements for Website Trial Version
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,041 ▲28013.70 ▼0.6524.23 ▲22.4250.67 ▲10.17
Dashboard /wp-admin2,199 ▲195.63 ▼0.0385.88 ▲0.4937.23 ▼6.13
Posts /wp-admin/edit.php2,101 ▲11.97 ▼0.0134.48 ▼3.6733.02 ▼3.04
Add New Post /wp-admin/post-new.php1,531 ▼523.24 ▲5.04651.83 ▲7.6559.24 ▼26.07
Media Library /wp-admin/upload.php1,404 ▲14.13 ▼0.08112.33 ▲14.9448.02 ▲4.70
WTV Options /wp-admin/options-general.php?page=wbst-tvs-options-page9792.0126.0924.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 14 options
    • wbst_tvs_box_hide
    • widget_theysaidso_widget
    • wbst_tvs_box_end_date
    • wbst_tvs_box_position
    • wbst_tvs_box_bg_color
    • can_compress_scripts
    • widget_recent-comments
    • wbst_tvs_box_color
    • widget_recent-posts
    • theysaidso_admin_options
    • ...

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/website-trial-version/website-trial-version.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: payments, doesnt pay, days, clients, offline...

website-trial-version/website-trial-version.php 92% from 13 tests

The main file in "Website Trial Version" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 498 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected769 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24113607
PHP1159162

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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