84% a360-embedder

Code Review | truevis A360 embedder

WordPress plugin truevis A360 embedder scored84%from 54 tests.

About plugin

  • Plugin page: a360-embedder
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 23, 2017
  • Latest release: Jul 23, 2017
  • Number of updates: 3
  • Update frequency: every 80.3 days
  • Top authors: truevis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.06ms] Passed 4 tests

Analyzing server-side resources used by truevis A360 embedder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.12 ▲1.50
Dashboard /wp-admin3.31 ▲0.0046.88 ▼3.59
Posts /wp-admin/edit.php3.36 ▲0.0043.52 ▼7.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.76 ▼3.74
Media Library /wp-admin/upload.php3.23 ▲0.0031.69 ▼4.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for truevis A360 embedder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.241.66 ▲0.0341.10 ▲0.48
Dashboard /wp-admin2,200 ▲124.86 ▼0.2195.19 ▼18.1039.09 ▼6.72
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0535.90 ▼0.9232.98 ▲0.27
Add New Post /wp-admin/post-new.php1,535 ▲1823.27 ▲0.07620.78 ▲2.5751.05 ▲1.85
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0496.97 ▼3.7742.69 ▼0.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/a360-embedder/a360-embedder.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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
No tags were detected

a360-embedder/a360-embedder.php 92% from 13 tests

The main file in "truevis A360 embedder" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14923

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png40.81KB21.67KB▼ 46.90%
popout50.png2.02KB1.93KB▼ 4.07%