89% wolf-library-templates

Code Review | Wolf Library Templates

WordPress plugin Wolf Library Templates scored 89% from 54 tests.

About plugin

  • Plugin page: wolf-library-temp...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Oct 27, 2021
  • Latest release: Nov 19, 2021
  • Number of updates: 4
  • Update frequency: every 6.0 days
  • Top authors: cuongma111 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 375 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.56MB] [CPU: ▲8.80ms] Passed 4 tests

This is a short check of server-side resources used by Wolf Library Templates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.02 ▲1.5654.48 ▲11.81
Dashboard /wp-admin4.86 ▲1.5654.43 ▲9.86
Posts /wp-admin/edit.php4.91 ▲1.5660.84 ▲9.84
Add New Post /wp-admin/post-new.php7.46 ▲1.5898.71 ▲3.69
Media Library /wp-admin/upload.php4.79 ▲1.5653.35 ▲20.36
Library Templates /wp-admin/themes.php?page=wolf-library-templates4.6941.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wolf Library Templates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲16513.44 ▼1.111.99 ▼0.2136.99 ▼10.27
Dashboard /wp-admin2,296 ▲1085.14 ▲0.29108.99 ▼4.0339.46 ▼5.35
Posts /wp-admin/edit.php2,161 ▲692.54 ▲0.5443.78 ▲4.0633.56 ▼3.62
Add New Post /wp-admin/post-new.php1,536 ▲823.32 ▲5.11607.70 ▼4.8535.71 ▼18.43
Media Library /wp-admin/upload.php1,469 ▲844.58 ▲0.39100.21 ▼0.0141.36 ▼1.82
Library Templates /wp-admin/themes.php?page=wolf-library-templates9892.5732.7436.27

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot.png) image not found
The official readme.txt might help

wolf-library-templates/main.php 92% from 13 tests

The primary PHP file in "Wolf Library Templates" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wolf-library-templates.php" instead of "main.php")

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 plugin37,827 lines of code in 152 files:
LanguageFilesBlank linesComment linesLines of code
PHP993,5981,48615,205
JavaScript101,8325746,534
PO File203,0373,4146,180
Sass1595934,837
CSS53454784,468
JSON100601
SVG2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity24.99
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity6.77
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes00.00%
Methods291
▷ Static methods4615.81%
▷ Public methods29099.66%
▷ Protected methods10.34%
▷ Private methods00.00%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
(invalid) templates/education/screenshot.png77.85KB0.00KB▼ 100.00%