89% 3dpc-quote-calculator-basic

Code Review | Phanes 3DP NONE-SUPPORTED VERSION

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

About plugin

  • Plugin page: 3dpc-quote-calcul...
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1+
  • WordPress version: 6.3.1
  • 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,241 total downloads

Benchmarks

Plugin footprint 83% from 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.03MB] [CPU: ▼1.14ms] Passed 4 tests

Analyzing server-side resources used by Phanes 3DP NONE-SUPPORTED VERSION
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.19 ▼1.65
Dashboard /wp-admin3.34 ▲0.0445.59 ▼2.64
Posts /wp-admin/edit.php3.39 ▲0.0345.57 ▼3.40
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.22 ▲3.14
Media Library /wp-admin/upload.php3.27 ▲0.0335.65 ▲4.92
Phanes 3dp Multiverse /wp-admin/options-general.php?page=p3dpmvwp3.2338.45

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

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

Browser metrics Passed 4 tests

Phanes 3DP NONE-SUPPORTED VERSION: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,343 ▲60813.35 ▼0.8311.85 ▲10.0040.78 ▼2.10
Dashboard /wp-admin2,207 ▲195.86 ▲0.9798.67 ▼12.0038.96 ▼4.29
Posts /wp-admin/edit.php2,093 ▲12.03 ▼0.0340.56 ▲4.2336.97 ▲3.46
Add New Post /wp-admin/post-new.php1,545 ▲3118.46 ▲0.92603.14 ▼100.6454.44 ▼5.97
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0599.70 ▼12.3043.71 ▼2.49
Phanes 3dp Multiverse /wp-admin/options-general.php?page=p3dpmvwp7892.0625.2629.64

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • 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
  • Tested up to: Version not formatted correctly
You can take inspiration from this readme.txt

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

"Phanes 3DP NONE-SUPPORTED VERSION" version 2...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "2...")
  • Main file name: Even though not officially enforced, the main 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 logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin