84% pithywp-templates

Code Review | Block Templates by PithyWP

WordPress plugin Block Templates by PithyWP scored84%from 54 tests.

About plugin

  • Plugin page: pithywp-templates
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2019
  • Latest release: Apr 26, 2019
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: pithywp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by Block Templates by PithyWP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0550.03 ▲7.99
Dashboard /wp-admin3.41 ▲0.0651.96 ▲1.19
Posts /wp-admin/edit.php3.52 ▲0.1253.12 ▲1.59
Add New Post /wp-admin/post-new.php6.01 ▲0.0890.01 ▼18.79
Media Library /wp-admin/upload.php3.33 ▲0.0639.34 ▲2.79
Templates /wp-admin/themes.php?page=pithywp-templates3.3034.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Block Templates by PithyWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,784 ▼214.36 ▲0.001.90 ▼0.2643.40 ▼0.36
Dashboard /wp-admin2,185 ▲85.56 ▼0.0494.35 ▲4.6479.18 ▲37.98
Posts /wp-admin/edit.php2,105 ▲52.00 ▲0.0037.50 ▼1.4836.16 ▼4.80
Add New Post /wp-admin/post-new.php1,555 ▲2118.39 ▲0.28653.92 ▲25.7258.12 ▼18.93
Media Library /wp-admin/upload.php1,402 ▼14.35 ▲0.1597.57 ▼4.6964.68 ▲17.85
Templates /wp-admin/themes.php?page=pithywp-templates1,1823.1860.0028.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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 | 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 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/themes.php?page=pithywp-templates
    • > Network (severe)
    https://pithywp.ir/wp-json/pithywp/v1/templates/?page=1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: block, page, template, design, elementor

pithywp-templates/plugin.php 92% from 13 tests

"Block Templates by PithyWP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pithywp-templates.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,039 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,5092,08710,648
PHP163203316
CSS216075

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1578.95%
▷ Protected methods210.53%
▷ Private methods210.53%
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
There are no PNG files in this plugin