90% webman-templates

Code Review | WebMan Templates

WordPress plugin WebMan Templates scored90%from 54 tests.

About plugin

  • Plugin page: webman-templates
  • Plugin version: 2.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Oct 23, 2017
  • Latest release: May 25, 2023
  • Number of updates: 21
  • Update frequency: every 97.1 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /16,206 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.02MB] [CPU: ▼2.74ms] Passed 4 tests

This is a short check of server-side resources used by WebMan Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.59 ▼0.71
Dashboard /wp-admin3.33 ▲0.0345.85 ▼2.27
Posts /wp-admin/edit.php3.38 ▲0.0244.45 ▼4.55
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.05 ▲2.68
Media Library /wp-admin/upload.php3.25 ▲0.0233.06 ▼3.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 145 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WebMan Templates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.151.64 ▼0.0943.61 ▼3.09
Dashboard /wp-admin2,203 ▲155.83 ▲0.8192.90 ▼23.9038.49 ▼5.16
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0232.86 ▼3.4534.02 ▲1.03
Add New Post /wp-admin/post-new.php1,543 ▲2018.46 ▼4.70600.08 ▼62.5348.56 ▼2.30
Media Library /wp-admin/upload.php1,385 ▲34.21 ▼0.01102.65 ▲1.8748.29 ▲4.38

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: templates, webman, rows, page builder, beaver builder

webman-templates/webman-templates.php Passed 13 tests

The main PHP file in "WebMan Templates" ver. 2.2.3 adds more information about the plugin and also serves as the entry point for this plugin
82 characters long description:
Provides collection of pre-designed row templates for Beaver Builder page builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin34,035 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG30033,825
PHP4133155127
Markdown247083

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity5.17
▷ Minimum method complexity2.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
127 PNG files occupy 0.34MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/icelander/thumbs/about-2.png3.06KB1.81KB▼ 40.67%
templates/icelander/thumbs/services-1.png1.96KB0.79KB▼ 60.04%
templates/icelander/thumbs/contact-2.png3.45KB2.28KB▼ 33.91%
templates/monument-valley/thumbs/intro-3.png1.12KB0.78KB▼ 30.14%
templates/monument-valley/thumbs/intro-2.png2.65KB1.75KB▼ 33.92%