99% 3dpc-quote-calculator-basic

Code Review | Phanes 3DP NONE-SUPPORTED VERSION

WordPress plugin Phanes 3DP NONE-SUPPORTED VERSION scored 99% from 54 tests.

About plugin

  • Plugin page: 3dpc-quote-calcul...
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1+
  • WordPress version: 5.9.2
  • First release: Apr 10, 2017
  • Latest release: Jun 5, 2020
  • Number of updates: 39
  • Update frequency: every 29.5 days
  • Top authors: phanesco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,053 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼298.59ms] Passed 4 tests

Analyzing server-side resources used by Phanes 3DP NONE-SUPPORTED VERSION
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0856.28 ▲0.64
Dashboard /wp-admin3.46 ▲0.0433.90 ▲0.16
Posts /wp-admin/edit.php3.68 ▲0.0437.44 ▼0.11
Add New Post /wp-admin/post-new.php6.92 ▼0.0691.85 ▼1,195.03
Media Library /wp-admin/upload.php3.33 ▲0.0325.39 ▲2.77
Phanes 3dp Multiverse /wp-admin/options-general.php?page=p3dpmvwp3.3024.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Phanes 3DP NONE-SUPPORTED VERSION
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4515.76 ▼0.256.62 ▲0.742.08 ▼0.79
Dashboard /wp-admin2,897 ▲436.12 ▼0.06118.48 ▼13.48156.80 ▼8.38
Posts /wp-admin/edit.php2,690 ▲333.24 ▼0.0162.71 ▼0.80139.79 ▼1.42
Add New Post /wp-admin/post-new.php1,782 ▲2722.14 ▲4.76430.52 ▲33.91160.42 ▼4.16
Media Library /wp-admin/upload.php1,700 ▲25.54 ▲0.02151.96 ▲9.22189.58 ▼3.98
Phanes 3dp Multiverse /wp-admin/options-general.php?page=p3dpmvwp1,0142.4155.28131.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tested up to: Invalid version format
  • Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #2, #3, #4, #5, #6, #7, #8, #9 in 3dpc-quote-calculator-basic/assets to your readme.txt
You can look at the official readme.txt

3dpc-quote-calculator-basic/phanes-3dp-multiverse-wp-edition.php 77% from 13 tests

"Phanes 3DP NONE-SUPPORTED VERSION" version 2...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "2...")
  • 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: The principal plugin file should be the same as the plugin slug ("3dpc-quote-calculator-basic.php" instead of "phanes-3dp-multiverse-wp-edition.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
There were no executable files found in this plugin170 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP135115152
JavaScript11118

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected