84% phoneme-order-woocommerce

Code Review | PhoneMe Order WooCommerce

WordPress plugin PhoneMe Order WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: phoneme-order-woo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.3
  • WordPress version: 6.3.1
  • First release: Sep 12, 2015
  • Latest release: Sep 12, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dimitrov.adrian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.40ms] Passed 4 tests

Server-side resources used by PhoneMe Order WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0322.82 ▼16.11
Dashboard /wp-admin3.35 ▲0.0543.70 ▼7.06
Posts /wp-admin/edit.php3.40 ▲0.0546.12 ▼0.96
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.83 ▼9.45
Media Library /wp-admin/upload.php3.27 ▲0.0436.48 ▲1.85

Server storage [IO: ▲0.02MB] [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: 8 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
phoneme_order_woocommerce_outofstock
widget_recent-posts
widget_recent-comments
phoneme_order_woocommerce_hint_text
can_compress_scripts
theysaidso_admin_options
db_upgraded
phoneme_order_woocommerce_title_1
phoneme_order_woocommerce_title_2

Browser metrics Passed 4 tests

An overview of browser requirements for PhoneMe Order WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼27013.51 ▼0.890.50 ▼1.5720.70 ▼18.48
Dashboard /wp-admin2,206 ▲214.84 ▼0.08102.67 ▼1.8437.60 ▼5.57
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0541.76 ▼2.1631.02 ▼3.50
Add New Post /wp-admin/post-new.php1,538 ▼223.16 ▼0.14612.29 ▼31.0858.91 ▼32.62
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0598.41 ▼6.6543.20 ▲1.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× 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/phoneme-order-woocommerce/phoneme-order-woocommerce.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Documents management), #2 (How it looks)
The official readme.txt is a good inspiration

phoneme-order-woocommerce/phoneme-order-woocommerce.php Passed 13 tests

"PhoneMe Order WooCommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
37 characters long description:
Fast order creation with just a phone

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected397 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15250162
CSS110095
PO File1222571
JavaScript113069

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin