10% 3d-presentation

Code Review | 3D Presentation

WordPress plugin 3D Presentation scored10%from 54 tests.

About plugin

  • Plugin page: 3d-presentation
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 4, 2012
  • Latest release: Aug 4, 2012
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: lpagg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,497 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+383
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.61MB] [CPU: ▼24.77ms] Passed 4 tests

A check of server-side resources used by 3D Presentation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1639.83 ▲0.76
Dashboard /wp-admin3.30 ▼0.0032.89 ▼16.44
Posts /wp-admin/edit.php3.40 ▲0.0435.85 ▼19.47
Add New Post /wp-admin/post-new.php3.31 ▼2.5839.02 ▼57.87
Media Library /wp-admin/upload.php3.33 ▲0.1033.62 ▼5.31
Add New Step /wp-admin/post-new.php?post_type=impressjsstep3.2935.37
3D Presentation /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php3.2429.12
3D Presentation /wp-admin/edit.php?post_type=impressjsstep3.5450.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
lpg_impressjs_options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for 3D Presentation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.36 ▼0.651.73 ▼0.2144.97 ▲5.38
Dashboard /wp-admin2,246 ▲584.97 ▲0.04101.50 ▼3.2586.24 ▲42.81
Posts /wp-admin/edit.php2,130 ▲412.08 ▲0.0836.02 ▼5.7835.68 ▼2.67
Add New Post /wp-admin/post-new.php1,547 ▲2617.58 ▼5.63698.52 ▲1.7363.95 ▲1.71
Media Library /wp-admin/upload.php1,419 ▲314.21 ▼0.07101.09 ▼4.9749.83 ▲5.38
Add New Step /wp-admin/post-new.php?post_type=impressjsstep2,3747.90172.70141.64
3D Presentation /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php9941.7624.8536.71
3D Presentation /wp-admin/edit.php?post_type=impressjsstep2,9442.2138.0739.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=impressjsstep
    • > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+306
    Undefined index: impressjs_meta_box_nonce
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=impressjsstep
    • > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+238
    Undefined index: std
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=impressjsstep
    • > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+238
    Undefined index: validation
    • > GET request to /wp-admin/options-general.php?page=3d-presentation/impressjs-step.php
    • > Notice in wp-content/plugins/3d-presentation/impressjs-step.php+115
    Undefined index: post_type

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/3d-presentation/impressjs-step.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/impressjs-overview.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/single-impressjsstep.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/3d-presentation/impressjs-presentation.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=impressjsstep
    • > Network (severe)
    wp-content/plugins/js/myvalidate.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=impressjsstep
    • > Network (severe)
    http://localhost/mz/index.php?impressjsoverview=true#/overviewinedit - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Screenshots: Add images for these screenshots: #1 (Setting Page), #2 (Editing Step Page)
You can look at the official readme.txt

3d-presentation/impressjs-step.php 85% from 13 tests

The main PHP file in "3D Presentation" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 267 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("3d-presentation.php" instead of "impressjs-step.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,688 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32713541,435
PHP4196157893
CSS2128225360

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
impressjs-icon16.png0.52KB0.52KB0.19%
screenshot-1.png18.61KB7.08KB▼ 61.98%
screenshot-2.png33.88KB16.45KB▼ 51.44%
impressjs-icon32.png1.04KB0.91KB▼ 12.64%
apple-touch-icon.png2.47KB1.95KB▼ 21.30%