84% templets

Code Review | Templets

WordPress plugin Templets scored84%from 54 tests.

About plugin

  • Plugin page: templets
  • Plugin version: 0.2.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Sep 25, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: mkaz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,361 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.57ms] Passed 4 tests

A check of server-side resources used by Templets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.13 ▼2.20
Dashboard /wp-admin3.34 ▲0.0353.31 ▲3.37
Posts /wp-admin/edit.php3.39 ▲0.0350.10 ▲1.58
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.40 ▼6.00
Media Library /wp-admin/upload.php3.26 ▲0.0340.81 ▲0.33
Add Pattern /wp-admin/post-new.php?post_type=templet_pattern5.9682.72
Templets /wp-admin/edit.php?post_type=templet_pattern3.3036.21

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Templets
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲5314.41 ▼0.241.72 ▼0.2542.83 ▼1.37
Dashboard /wp-admin2,233 ▲484.85 ▼0.9799.77 ▼23.9939.63 ▼4.67
Posts /wp-admin/edit.php2,113 ▲242.05 ▲0.0337.70 ▼0.8234.68 ▼0.90
Add New Post /wp-admin/post-new.php1,553 ▲3423.51 ▲0.32679.54 ▼22.2557.74 ▲4.06
Media Library /wp-admin/upload.php1,415 ▲304.21 ▼0.00107.28 ▲1.8848.06 ▲4.61
Add Pattern /wp-admin/post-new.php?post_type=templet_pattern6,18121.70919.6929.40
Templets /wp-admin/edit.php?post_type=templet_pattern1,0802.0134.6630.23

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templets/templets.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: block patterns, patterns

templets/templets.php Passed 13 tests

The main file in "Templets" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
44 characters long description:
List and create patterns as custom post type

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin58 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181658

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin