78% seemymodel

Code Review | SeeMyModel

WordPress plugin SeeMyModel scored78%from 54 tests.

About plugin

  • Plugin page: seemymodel
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 6.3.1
  • First release: Jun 24, 2021
  • Latest release: Nov 12, 2021
  • Number of updates: 6
  • Update frequency: every 23.7 days
  • Top authors: seemymodel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.88ms] Passed 4 tests

A check of server-side resources used by SeeMyModel
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0940.42 ▼2.32
Dashboard /wp-admin3.30 ▼0.0135.02 ▼10.37
Posts /wp-admin/edit.php3.36 ▲0.0135.84 ▼12.20
Add New Post /wp-admin/post-new.php5.87 ▼0.0177.63 ▼20.82
Media Library /wp-admin/upload.php3.30 ▲0.0731.73 ▼4.11
SeeMyModel settings /wp-admin/options-general.php?page=seemymodel-options3.2732.87

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by SeeMyModel
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.67 ▼0.551.82 ▼0.2942.79 ▼3.05
Dashboard /wp-admin2,221 ▲334.92 ▲0.04100.93 ▼13.1341.25 ▼1.55
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0434.34 ▼1.5635.96 ▲2.94
Add New Post /wp-admin/post-new.php6,251 ▲4,71622.45 ▼0.69947.73 ▲274.5394.22 ▲30.37
Media Library /wp-admin/upload.php1,400 ▲154.21 ▼0.1196.44 ▼8.1545.24 ▼0.20
SeeMyModel settings /wp-admin/options-general.php?page=seemymodel-options7992.0329.5531.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=seemymodel-options
    • > Warning in wp-content/plugins/seemymodel/packages/elementor-widgets/seemymodel-elementor.php+60
    sprintf(): Too few arguments

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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/seemymodel/packages/woocommerce/seemymodel-woocommerce.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/seemymodel/packages/elementor-widgets/widgets/seemymodel-viewer-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seemymodel/rest-api.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seemymodel/packages/gutenberg-blocks/seemymodel-blocks.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/seemymodel/packages/elementor-widgets/widgets/seemymodel-group-viewer-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/seemymodel/see-my-model.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: webar, seemymodel, 3d models, ar

seemymodel/see-my-model.php 77% from 13 tests

The entry point to "SeeMyModel" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("seemymodel.php" instead of "see-my-model.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)

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
Success! There were no dangerous files found in this plugin37,902 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JSON60036,696
PHP1013583873
JavaScript43458250
PO File1241164
Sass22115
CSS2104

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.75
▷ Minimum class complexity7.00
▷ Maximum class complexity14.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods33
▷ Static methods13.03%
▷ Public methods2987.88%
▷ Protected methods412.12%
▷ Private methods00.00%
Functions16
▷ Named functions425.00%
▷ Anonymous functions1275.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin