10% rimplates

Code Review | Rimplates

WordPress plugin Rimplates scored10%from 54 tests.

About plugin

  • Plugin page: rimplates
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2022
  • Latest release: Feb 28, 2022
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: rimplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /390 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+9
    Undefined index: rimplenettransaction_type

Server metrics [RAM: ▼1.82MB] [CPU: ▼56.41ms] Passed 4 tests

A check of server-side resources used by Rimplates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.62 ▼36.77
Dashboard /wp-admin2.19 ▼1.157.09 ▼58.38
Posts /wp-admin/edit.php2.19 ▼1.166.60 ▼45.31
Add New Post /wp-admin/post-new.php2.19 ▼3.697.65 ▼85.19
Media Library /wp-admin/upload.php2.19 ▼1.037.59 ▼28.59
All - Rimplates Template /wp-admin/edit.php?post_type=rimplates2.206.46
Add New /wp-admin/post-new.php?post_type=rimplates2.207.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Rimplates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19913.54 ▼0.769.24 ▲7.4746.40 ▲2.39
Dashboard /wp-admin2,262 ▲595.88 ▼0.02102.14 ▼4.7837.25 ▼4.50
Posts /wp-admin/edit.php2,144 ▲442.04 ▲0.0536.00 ▼4.1737.51 ▲1.05
Add New Post /wp-admin/post-new.php1,564 ▲1923.32 ▲0.25619.31 ▼31.6249.99 ▼0.82
Media Library /wp-admin/upload.php1,441 ▲444.27 ▲0.02103.60 ▼0.2743.43 ▼6.26
All - Rimplates Template /wp-admin/edit.php?post_type=rimplates1,1501.9430.4032.45
Add New /wp-admin/post-new.php?post_type=rimplates2,9627.86175.7878.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+9
    Undefined index: rimplenettransaction_type
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rimplates
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+9
    Undefined index: rimplenettransaction_type
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=rimplates
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+10
    Undefined index: post
    • > GET request to /wp-admin/post-new.php?post_type=rimplates
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+132
    Undefined index: rimplates_template
    • > GET request to /wp-admin/post-new.php?post_type=rimplates
    • > Notice in wp-content/plugins/rimplates/admin/class-admin-template-settings.php+48
    Undefined variable: template_post_id

SRP 0% 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 take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/rimplates/public/partials/rimplates-public-display.php
    • > /wp-content/plugins/rimplates/includes/page-templates/template-single-product.php
    • > /wp-content/plugins/rimplates/admin/partials/rimplates-admin-display.php
  • 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Rimplates_PostType\\add_action() in wp-content/plugins/rimplates/includes/class-cpt.php:128
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rimplates/admin/class-admin-sidebar-menu-settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/rimplates/public/templates/default/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/rimplates/includes/page-templates/template-blank-page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rimplates/public/templates/default/functions.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/rimplates/public/templates/default/footer.php:3
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/rimplates/admin/partials/metabox-template-settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rimplates/includes/page-templates/class-init-page-template.php:176
    • > PHP Notice
      Undefined variable: meta_id in wp-content/plugins/rimplates/admin/partials/metabox-template-settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/rimplates/admin/partials/metabox-template-settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

rimplates/rimplates.php 92% from 13 tests

The entry point to "Rimplates" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 421 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected20,850 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,60827914,003
JavaScript186947713,033
SVG30122,829
PHP26429727985

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.82
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods52
▷ Static methods35.77%
▷ Public methods4688.46%
▷ Protected methods00.00%
▷ Private methods611.54%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected